-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Change event_destination.matching_event_types to Set to fix diff due to AWS-side sorting for aws_sesv2_configuration_set_event_destination #36897
fix: Change event_destination.matching_event_types to Set to fix diff due to AWS-side sorting for aws_sesv2_configuration_set_event_destination #36897
Conversation
Community NoteVoting for Prioritization
For Submitters
|
… due to AWS-side sorting for aws_sesv2_configuration_set_event_destination
b508c78
to
2353adc
Compare
% make testacc TESTARGS='-run=TestAccSESV2ContactList_serial' PKG=sesv2 make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.22.6 test ./internal/service/sesv2/... -v -count 1 -parallel 20 -run=TestAccSESV2ContactList_serial -timeout 360m === RUN TestAccSESV2ContactList_serial === PAUSE TestAccSESV2ContactList_serial === CONT TestAccSESV2ContactList_serial === RUN TestAccSESV2ContactList_serial/basic === RUN TestAccSESV2ContactList_serial/disappears === RUN TestAccSESV2ContactList_serial/tags === RUN TestAccSESV2ContactList_serial/description === RUN TestAccSESV2ContactList_serial/topic --- PASS: TestAccSESV2ContactList_serial (86.14s) --- PASS: TestAccSESV2ContactList_serial/basic (13.70s) --- PASS: TestAccSESV2ContactList_serial/disappears (10.78s) --- PASS: TestAccSESV2ContactList_serial/tags (20.62s) --- PASS: TestAccSESV2ContactList_serial/description (20.42s) --- PASS: TestAccSESV2ContactList_serial/topic (20.61s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/sesv2 91.211s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccSESV2ContactList_serial' PKG=sesv2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/sesv2/... -v -count 1 -parallel 20 -run=TestAccSESV2ContactList_serial -timeout 360m
=== RUN TestAccSESV2ContactList_serial
=== PAUSE TestAccSESV2ContactList_serial
=== CONT TestAccSESV2ContactList_serial
=== RUN TestAccSESV2ContactList_serial/basic
=== RUN TestAccSESV2ContactList_serial/disappears
=== RUN TestAccSESV2ContactList_serial/tags
=== RUN TestAccSESV2ContactList_serial/description
=== RUN TestAccSESV2ContactList_serial/topic
--- PASS: TestAccSESV2ContactList_serial (86.14s)
--- PASS: TestAccSESV2ContactList_serial/basic (13.70s)
--- PASS: TestAccSESV2ContactList_serial/disappears (10.78s)
--- PASS: TestAccSESV2ContactList_serial/tags (20.62s)
--- PASS: TestAccSESV2ContactList_serial/description (20.42s)
--- PASS: TestAccSESV2ContactList_serial/topic (20.61s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sesv2 91.211s
% make testacc TESTARGS='-run=TestAccSESV2ConfigurationSet_\|TestAccSESV2ConfigurationSetDataSource_' PKG=sesv2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/sesv2/... -v -count 1 -parallel 20 -run=TestAccSESV2ConfigurationSet_\|TestAccSESV2ConfigurationSetDataSource_ -timeout 360m
=== RUN TestAccSESV2ConfigurationSetDataSource_basic
=== PAUSE TestAccSESV2ConfigurationSetDataSource_basic
=== RUN TestAccSESV2ConfigurationSet_basic
=== PAUSE TestAccSESV2ConfigurationSet_basic
=== RUN TestAccSESV2ConfigurationSet_disappears
=== PAUSE TestAccSESV2ConfigurationSet_disappears
=== RUN TestAccSESV2ConfigurationSet_tlsPolicy
=== PAUSE TestAccSESV2ConfigurationSet_tlsPolicy
=== RUN TestAccSESV2ConfigurationSet_reputationMetricsEnabled
=== PAUSE TestAccSESV2ConfigurationSet_reputationMetricsEnabled
=== RUN TestAccSESV2ConfigurationSet_sendingEnabled
=== PAUSE TestAccSESV2ConfigurationSet_sendingEnabled
=== RUN TestAccSESV2ConfigurationSet_suppressedReasons
=== PAUSE TestAccSESV2ConfigurationSet_suppressedReasons
=== RUN TestAccSESV2ConfigurationSet_suppressedReasonsEmpty
=== PAUSE TestAccSESV2ConfigurationSet_suppressedReasonsEmpty
=== RUN TestAccSESV2ConfigurationSet_engagementMetrics
=== PAUSE TestAccSESV2ConfigurationSet_engagementMetrics
=== RUN TestAccSESV2ConfigurationSet_optimizedSharedDelivery
=== PAUSE TestAccSESV2ConfigurationSet_optimizedSharedDelivery
=== RUN TestAccSESV2ConfigurationSet_tags
=== PAUSE TestAccSESV2ConfigurationSet_tags
=== CONT TestAccSESV2ConfigurationSetDataSource_basic
=== CONT TestAccSESV2ConfigurationSet_suppressedReasons
=== CONT TestAccSESV2ConfigurationSet_tlsPolicy
=== CONT TestAccSESV2ConfigurationSet_optimizedSharedDelivery
=== CONT TestAccSESV2ConfigurationSet_engagementMetrics
=== CONT TestAccSESV2ConfigurationSet_sendingEnabled
=== CONT TestAccSESV2ConfigurationSet_basic
=== CONT TestAccSESV2ConfigurationSet_suppressedReasonsEmpty
=== CONT TestAccSESV2ConfigurationSet_reputationMetricsEnabled
=== CONT TestAccSESV2ConfigurationSet_tags
=== CONT TestAccSESV2ConfigurationSet_disappears
--- PASS: TestAccSESV2ConfigurationSet_disappears (17.60s)
--- PASS: TestAccSESV2ConfigurationSetDataSource_basic (17.84s)
--- PASS: TestAccSESV2ConfigurationSet_basic (20.57s)
--- PASS: TestAccSESV2ConfigurationSet_suppressedReasonsEmpty (24.25s)
--- PASS: TestAccSESV2ConfigurationSet_sendingEnabled (27.89s)
--- PASS: TestAccSESV2ConfigurationSet_reputationMetricsEnabled (31.37s)
--- PASS: TestAccSESV2ConfigurationSet_tlsPolicy (31.46s)
--- PASS: TestAccSESV2ConfigurationSet_optimizedSharedDelivery (31.85s)
--- PASS: TestAccSESV2ConfigurationSet_suppressedReasons (33.20s)
--- PASS: TestAccSESV2ConfigurationSet_tags (37.64s)
--- PASS: TestAccSESV2ConfigurationSet_engagementMetrics (39.70s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sesv2 44.741s
% make testacc TESTARGS='-run=TestAccSESV2ConfigurationSetEventDestination_' PKG=sesv2 ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/sesv2/... -v -count 1 -parallel 3 -run=TestAccSESV2ConfigurationSetEventDestination_ -timeout 360m
=== RUN TestAccSESV2ConfigurationSetEventDestination_basic
=== PAUSE TestAccSESV2ConfigurationSetEventDestination_basic
=== RUN TestAccSESV2ConfigurationSetEventDestination_cloudWatchDestination
=== PAUSE TestAccSESV2ConfigurationSetEventDestination_cloudWatchDestination
=== RUN TestAccSESV2ConfigurationSetEventDestination_eventBridgeDestination
=== PAUSE TestAccSESV2ConfigurationSetEventDestination_eventBridgeDestination
=== RUN TestAccSESV2ConfigurationSetEventDestination_kinesisFirehoseDestination
=== PAUSE TestAccSESV2ConfigurationSetEventDestination_kinesisFirehoseDestination
=== RUN TestAccSESV2ConfigurationSetEventDestination_pinpointDestination
=== PAUSE TestAccSESV2ConfigurationSetEventDestination_pinpointDestination
=== RUN TestAccSESV2ConfigurationSetEventDestination_snsDestination
=== PAUSE TestAccSESV2ConfigurationSetEventDestination_snsDestination
=== RUN TestAccSESV2ConfigurationSetEventDestination_disappears
=== PAUSE TestAccSESV2ConfigurationSetEventDestination_disappears
=== CONT TestAccSESV2ConfigurationSetEventDestination_basic
=== CONT TestAccSESV2ConfigurationSetEventDestination_pinpointDestination
=== CONT TestAccSESV2ConfigurationSetEventDestination_disappears
--- PASS: TestAccSESV2ConfigurationSetEventDestination_disappears (12.77s)
=== CONT TestAccSESV2ConfigurationSetEventDestination_snsDestination
--- PASS: TestAccSESV2ConfigurationSetEventDestination_basic (22.48s)
=== CONT TestAccSESV2ConfigurationSetEventDestination_eventBridgeDestination
--- PASS: TestAccSESV2ConfigurationSetEventDestination_pinpointDestination (24.43s)
=== CONT TestAccSESV2ConfigurationSetEventDestination_kinesisFirehoseDestination
--- PASS: TestAccSESV2ConfigurationSetEventDestination_snsDestination (23.67s)
=== CONT TestAccSESV2ConfigurationSetEventDestination_cloudWatchDestination
--- PASS: TestAccSESV2ConfigurationSetEventDestination_eventBridgeDestination (14.05s)
--- PASS: TestAccSESV2ConfigurationSetEventDestination_cloudWatchDestination (20.91s)
--- PASS: TestAccSESV2ConfigurationSetEventDestination_kinesisFirehoseDestination (108.20s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sesv2 137.676s
% make testacc TESTARGS='-run=TestAccSESV2AccountVDMAttributes_serial' PKG=sesv2 ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/sesv2/... -v -count 1 -parallel 3 -run=TestAccSESV2AccountVDMAttributes_serial -timeout 360m
=== RUN TestAccSESV2AccountVDMAttributes_serial
=== PAUSE TestAccSESV2AccountVDMAttributes_serial
=== CONT TestAccSESV2AccountVDMAttributes_serial
=== RUN TestAccSESV2AccountVDMAttributes_serial/optimizedSharedDelivery
=== RUN TestAccSESV2AccountVDMAttributes_serial/basic
=== RUN TestAccSESV2AccountVDMAttributes_serial/disappears
=== RUN TestAccSESV2AccountVDMAttributes_serial/engagementMetrics
--- PASS: TestAccSESV2AccountVDMAttributes_serial (63.37s)
--- PASS: TestAccSESV2AccountVDMAttributes_serial/optimizedSharedDelivery (20.74s)
--- PASS: TestAccSESV2AccountVDMAttributes_serial/basic (12.28s)
--- PASS: TestAccSESV2AccountVDMAttributes_serial/disappears (10.54s)
--- PASS: TestAccSESV2AccountVDMAttributes_serial/engagementMetrics (19.80s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sesv2 68.462s
% make testacc TESTARGS='-run=TestAccSESV2DedicatedIPAssignment_serial' PKG=sesv2 ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/sesv2/... -v -count 1 -parallel 3 -run=TestAccSESV2DedicatedIPAssignment_serial -timeout 360m
=== RUN TestAccSESV2DedicatedIPAssignment_serial
=== PAUSE TestAccSESV2DedicatedIPAssignment_serial
=== CONT TestAccSESV2DedicatedIPAssignment_serial
=== RUN TestAccSESV2DedicatedIPAssignment_serial/basic
dedicated_ip_assignment_test.go:36: Environment variable SES_DEDICATED_IP is not set
=== RUN TestAccSESV2DedicatedIPAssignment_serial/disappears
dedicated_ip_assignment_test.go:69: Environment variable SES_DEDICATED_IP is not set
--- PASS: TestAccSESV2DedicatedIPAssignment_serial (0.00s)
--- SKIP: TestAccSESV2DedicatedIPAssignment_serial/basic (0.00s)
--- SKIP: TestAccSESV2DedicatedIPAssignment_serial/disappears (0.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sesv2 5.076s
% make testacc TESTARGS='-run=TestAccSESV2DedicatedIPPool_\|TestAccSESV2DedicatedIPPoolDataSource_' PKG=sesv2 ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/sesv2/... -v -count 1 -parallel 3 -run=TestAccSESV2DedicatedIPPool_\|TestAccSESV2DedicatedIPPoolDataSource_ -timeout 360m
=== RUN TestAccSESV2DedicatedIPPoolDataSource_basic
=== PAUSE TestAccSESV2DedicatedIPPoolDataSource_basic
=== RUN TestAccSESV2DedicatedIPPool_basic
=== PAUSE TestAccSESV2DedicatedIPPool_basic
=== RUN TestAccSESV2DedicatedIPPool_disappears
=== PAUSE TestAccSESV2DedicatedIPPool_disappears
=== RUN TestAccSESV2DedicatedIPPool_scalingMode
=== PAUSE TestAccSESV2DedicatedIPPool_scalingMode
=== RUN TestAccSESV2DedicatedIPPool_tags
=== PAUSE TestAccSESV2DedicatedIPPool_tags
=== CONT TestAccSESV2DedicatedIPPoolDataSource_basic
=== CONT TestAccSESV2DedicatedIPPool_scalingMode
=== CONT TestAccSESV2DedicatedIPPool_tags
--- PASS: TestAccSESV2DedicatedIPPoolDataSource_basic (12.72s)
=== CONT TestAccSESV2DedicatedIPPool_disappears
=== CONT TestAccSESV2DedicatedIPPool_basic
--- PASS: TestAccSESV2DedicatedIPPool_scalingMode (22.24s)
--- PASS: TestAccSESV2DedicatedIPPool_disappears (10.68s)
--- PASS: TestAccSESV2DedicatedIPPool_tags (29.60s)
--- PASS: TestAccSESV2DedicatedIPPool_basic (12.76s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sesv2 40.071s
% make testacc TESTARGS='-run=TestAccSESV2EmailIdentityDataSource_\|TestAccSESV2EmailIdentityFeedbackAttributes_\|TestAccSESV2EmailIdentityMailFromAttributesDataSource_\|TestAccSESV2EmailIdentityMailFromAttributes_\|TestAccSESV2EmailIdentity_' PKG=sesv2 ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/sesv2/... -v -count 1 -parallel 3 -run=TestAccSESV2EmailIdentityDataSource_\|TestAccSESV2EmailIdentityFeedbackAttributes_\|TestAccSESV2EmailIdentityMailFromAttributesDataSource_\|TestAccSESV2EmailIdentityMailFromAttributes_\|TestAccSESV2EmailIdentity_ -timeout 360m
=== RUN TestAccSESV2EmailIdentityDataSource_basic
=== PAUSE TestAccSESV2EmailIdentityDataSource_basic
=== RUN TestAccSESV2EmailIdentityFeedbackAttributes_basic
=== PAUSE TestAccSESV2EmailIdentityFeedbackAttributes_basic
=== RUN TestAccSESV2EmailIdentityFeedbackAttributes_disappears
=== PAUSE TestAccSESV2EmailIdentityFeedbackAttributes_disappears
=== RUN TestAccSESV2EmailIdentityFeedbackAttributes_disappears_emailIdentity
=== PAUSE TestAccSESV2EmailIdentityFeedbackAttributes_disappears_emailIdentity
=== RUN TestAccSESV2EmailIdentityFeedbackAttributes_emailForwardingEnabled
=== PAUSE TestAccSESV2EmailIdentityFeedbackAttributes_emailForwardingEnabled
=== RUN TestAccSESV2EmailIdentityMailFromAttributesDataSource_basic
=== PAUSE TestAccSESV2EmailIdentityMailFromAttributesDataSource_basic
=== RUN TestAccSESV2EmailIdentityMailFromAttributes_basic
=== PAUSE TestAccSESV2EmailIdentityMailFromAttributes_basic
=== RUN TestAccSESV2EmailIdentityMailFromAttributes_disappears
=== PAUSE TestAccSESV2EmailIdentityMailFromAttributes_disappears
=== RUN TestAccSESV2EmailIdentityMailFromAttributes_disappearsEmailIdentity
=== PAUSE TestAccSESV2EmailIdentityMailFromAttributes_disappearsEmailIdentity
=== RUN TestAccSESV2EmailIdentityMailFromAttributes_behaviorOnMXFailure
=== PAUSE TestAccSESV2EmailIdentityMailFromAttributes_behaviorOnMXFailure
=== RUN TestAccSESV2EmailIdentityMailFromAttributes_mailFromDomain
=== PAUSE TestAccSESV2EmailIdentityMailFromAttributes_mailFromDomain
=== RUN TestAccSESV2EmailIdentity_basic_emailAddress
=== PAUSE TestAccSESV2EmailIdentity_basic_emailAddress
=== RUN TestAccSESV2EmailIdentity_basic_domain
=== PAUSE TestAccSESV2EmailIdentity_basic_domain
=== RUN TestAccSESV2EmailIdentity_disappears
=== PAUSE TestAccSESV2EmailIdentity_disappears
=== RUN TestAccSESV2EmailIdentity_configurationSetName
=== PAUSE TestAccSESV2EmailIdentity_configurationSetName
=== RUN TestAccSESV2EmailIdentity_nextSigningKeyLength
=== PAUSE TestAccSESV2EmailIdentity_nextSigningKeyLength
=== RUN TestAccSESV2EmailIdentity_domainSigning
=== PAUSE TestAccSESV2EmailIdentity_domainSigning
=== RUN TestAccSESV2EmailIdentity_tags
=== PAUSE TestAccSESV2EmailIdentity_tags
=== CONT TestAccSESV2EmailIdentityDataSource_basic
=== CONT TestAccSESV2EmailIdentityMailFromAttributes_behaviorOnMXFailure
=== CONT TestAccSESV2EmailIdentity_configurationSetName
--- PASS: TestAccSESV2EmailIdentityDataSource_basic (13.27s)
=== CONT TestAccSESV2EmailIdentity_domainSigning
--- PASS: TestAccSESV2EmailIdentity_configurationSetName (23.95s)
=== CONT TestAccSESV2EmailIdentity_tags
--- PASS: TestAccSESV2EmailIdentityMailFromAttributes_behaviorOnMXFailure (24.25s)
=== CONT TestAccSESV2EmailIdentity_basic_domain
--- PASS: TestAccSESV2EmailIdentity_domainSigning (22.01s)
=== CONT TestAccSESV2EmailIdentity_disappears
--- PASS: TestAccSESV2EmailIdentity_basic_domain (13.86s)
=== CONT TestAccSESV2EmailIdentity_basic_emailAddress
--- PASS: TestAccSESV2EmailIdentity_disappears (10.81s)
=== CONT TestAccSESV2EmailIdentityMailFromAttributes_mailFromDomain
--- PASS: TestAccSESV2EmailIdentity_basic_emailAddress (13.05s)
=== CONT TestAccSESV2EmailIdentityMailFromAttributesDataSource_basic
--- PASS: TestAccSESV2EmailIdentity_tags (29.05s)
=== CONT TestAccSESV2EmailIdentityMailFromAttributes_disappearsEmailIdentity
--- PASS: TestAccSESV2EmailIdentityMailFromAttributesDataSource_basic (12.49s)
=== CONT TestAccSESV2EmailIdentityMailFromAttributes_disappears
--- PASS: TestAccSESV2EmailIdentityMailFromAttributes_disappearsEmailIdentity (12.18s)
=== CONT TestAccSESV2EmailIdentityMailFromAttributes_basic
--- PASS: TestAccSESV2EmailIdentityMailFromAttributes_mailFromDomain (22.21s)
=== CONT TestAccSESV2EmailIdentityFeedbackAttributes_disappears_emailIdentity
--- PASS: TestAccSESV2EmailIdentityMailFromAttributes_disappears (12.40s)
=== CONT TestAccSESV2EmailIdentityFeedbackAttributes_emailForwardingEnabled
--- PASS: TestAccSESV2EmailIdentityMailFromAttributes_basic (14.40s)
=== CONT TestAccSESV2EmailIdentity_nextSigningKeyLength
--- PASS: TestAccSESV2EmailIdentityFeedbackAttributes_disappears_emailIdentity (11.53s)
=== CONT TestAccSESV2EmailIdentityFeedbackAttributes_disappears
--- PASS: TestAccSESV2EmailIdentityFeedbackAttributes_disappears (11.73s)
=== CONT TestAccSESV2EmailIdentityFeedbackAttributes_basic
--- PASS: TestAccSESV2EmailIdentityFeedbackAttributes_emailForwardingEnabled (21.34s)
--- PASS: TestAccSESV2EmailIdentity_nextSigningKeyLength (21.78s)
--- PASS: TestAccSESV2EmailIdentityFeedbackAttributes_basic (13.30s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sesv2 109.712s
% make testacc TESTARGS='-run=TestAccSESV2EmailIdentityPolicy_' PKG=sesv2 ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/sesv2/... -v -count 1 -parallel 3 -run=TestAccSESV2EmailIdentityPolicy_ -timeout 360m
=== RUN TestAccSESV2EmailIdentityPolicy_basic
=== PAUSE TestAccSESV2EmailIdentityPolicy_basic
=== RUN TestAccSESV2EmailIdentityPolicy_disappears
=== PAUSE TestAccSESV2EmailIdentityPolicy_disappears
=== CONT TestAccSESV2EmailIdentityPolicy_basic
=== CONT TestAccSESV2EmailIdentityPolicy_disappears
--- PASS: TestAccSESV2EmailIdentityPolicy_disappears (12.78s)
--- PASS: TestAccSESV2EmailIdentityPolicy_basic (14.81s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sesv2 20.859s
@acwwat Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.67.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR is to fix a perpetual diff issue with the
aws_sesv2_configuration_set_event_destination
resource due to AWS sorting theevent_destination.matching_event_types
list attr on the server side. If list is not order in the Terraform configuration, it will always generate a diff between the unsorted config and the sorted state. Although not ideal, the fix is to convertevent_destination.matching_event_types
toschema.TypeSet
.Aside from running the tests, I've also ensured compatibility by manually testing the type conversion location as follows:
Relations
Closes #36896
References
n/a
Output from Acceptance Testing