-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
resource/aws_ami: Fixes eventual consistency errors #34691
Conversation
…EC2AMI_description`
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 A new usage of AWS SDK for Go V1 was detected. Please prefer AWS SDK for Go V2 for all net-new services. If this is an enhancement or bug fix to an existing AWS SDK Go V1 based resource, this comment can be safely ignored. For additional information refer to the AWS SDK for Go Versions page in the contributor guide. |
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.
Do we need to additionally mention aws_ami_from_instance
and aws_ami_copy
?
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=TestAccEC2AMI_\|TestAccEC2AMICopy_\|TestAccEC2AMIFromInstance_' PKG=ec2 ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 2 -run=TestAccEC2AMI_\|TestAccEC2AMICopy_\|TestAccEC2AMIFromInstance_ -timeout 360m
=== RUN TestAccEC2AMICopy_basic
=== PAUSE TestAccEC2AMICopy_basic
=== RUN TestAccEC2AMICopy_description
=== PAUSE TestAccEC2AMICopy_description
=== RUN TestAccEC2AMICopy_enaSupport
=== PAUSE TestAccEC2AMICopy_enaSupport
=== RUN TestAccEC2AMICopy_destinationOutpost
=== PAUSE TestAccEC2AMICopy_destinationOutpost
=== RUN TestAccEC2AMICopy_tags
=== PAUSE TestAccEC2AMICopy_tags
=== RUN TestAccEC2AMIFromInstance_basic
=== PAUSE TestAccEC2AMIFromInstance_basic
=== RUN TestAccEC2AMIFromInstance_tags
=== PAUSE TestAccEC2AMIFromInstance_tags
=== RUN TestAccEC2AMIFromInstance_disappears
=== PAUSE TestAccEC2AMIFromInstance_disappears
=== RUN TestAccEC2AMI_basic
=== PAUSE TestAccEC2AMI_basic
=== RUN TestAccEC2AMI_deprecateAt
=== PAUSE TestAccEC2AMI_deprecateAt
=== RUN TestAccEC2AMI_description
=== PAUSE TestAccEC2AMI_description
=== RUN TestAccEC2AMI_disappears
=== PAUSE TestAccEC2AMI_disappears
=== RUN TestAccEC2AMI_ephemeralBlockDevices
=== PAUSE TestAccEC2AMI_ephemeralBlockDevices
=== RUN TestAccEC2AMI_gp3BlockDevice
=== PAUSE TestAccEC2AMI_gp3BlockDevice
=== RUN TestAccEC2AMI_tags
=== PAUSE TestAccEC2AMI_tags
=== RUN TestAccEC2AMI_outpost
=== PAUSE TestAccEC2AMI_outpost
=== RUN TestAccEC2AMI_boot
=== PAUSE TestAccEC2AMI_boot
=== RUN TestAccEC2AMI_tpmSupport
=== PAUSE TestAccEC2AMI_tpmSupport
=== RUN TestAccEC2AMI_imdsSupport
=== PAUSE TestAccEC2AMI_imdsSupport
=== CONT TestAccEC2AMICopy_basic
=== CONT TestAccEC2AMI_description
--- PASS: TestAccEC2AMI_description (103.25s)
=== CONT TestAccEC2AMI_outpost
acctest.go:1157: skipping since no Outposts found
--- SKIP: TestAccEC2AMI_outpost (0.47s)
=== CONT TestAccEC2AMI_imdsSupport
--- PASS: TestAccEC2AMICopy_basic (142.25s)
=== CONT TestAccEC2AMI_tpmSupport
--- PASS: TestAccEC2AMI_imdsSupport (73.01s)
=== CONT TestAccEC2AMI_boot
--- PASS: TestAccEC2AMI_tpmSupport (73.45s)
=== CONT TestAccEC2AMIFromInstance_basic
--- PASS: TestAccEC2AMI_boot (72.21s)
=== CONT TestAccEC2AMI_deprecateAt
--- PASS: TestAccEC2AMI_deprecateAt (135.52s)
=== CONT TestAccEC2AMI_basic
--- PASS: TestAccEC2AMI_basic (74.06s)
=== CONT TestAccEC2AMICopy_destinationOutpost
acctest.go:1157: skipping since no Outposts found
--- SKIP: TestAccEC2AMICopy_destinationOutpost (0.49s)
=== CONT TestAccEC2AMICopy_tags
--- PASS: TestAccEC2AMIFromInstance_basic (310.44s)
=== CONT TestAccEC2AMIFromInstance_disappears
--- PASS: TestAccEC2AMICopy_tags (188.54s)
=== CONT TestAccEC2AMIFromInstance_tags
--- PASS: TestAccEC2AMIFromInstance_disappears (319.38s)
=== CONT TestAccEC2AMI_gp3BlockDevice
--- PASS: TestAccEC2AMI_gp3BlockDevice (74.24s)
=== CONT TestAccEC2AMICopy_enaSupport
--- PASS: TestAccEC2AMICopy_enaSupport (142.82s)
=== CONT TestAccEC2AMI_tags
--- PASS: TestAccEC2AMIFromInstance_tags (421.09s)
=== CONT TestAccEC2AMI_ephemeralBlockDevices
--- PASS: TestAccEC2AMI_ephemeralBlockDevices (76.03s)
=== CONT TestAccEC2AMICopy_description
--- PASS: TestAccEC2AMI_tags (117.44s)
=== CONT TestAccEC2AMI_disappears
--- PASS: TestAccEC2AMI_disappears (70.23s)
--- PASS: TestAccEC2AMICopy_description (165.83s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 1316.129s
This functionality has been released in v5.30.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
The parameters
description
anddeprecation_time
are set or modified using eventually consistent operations. This was causing them to not be updated in Terraform state.Also affects
aws_ami_from_instance
andaws_ami_copy
Output from Acceptance Testing