-
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
fix: Fix create timestamp cmp for aws_appstream_image data source #38571
fix: Fix create timestamp cmp for aws_appstream_image data source #38571
Conversation
Community NoteVoting for Prioritization
For Submitters
|
1551e59
to
ce512f8
Compare
ce512f8
to
2a22a6b
Compare
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=TestAccAppStreamImageDataSource_' PKG=appstream
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/appstream/... -v -count 1 -parallel 20 -run=TestAccAppStreamImageDataSource_ -timeout 360m
=== RUN TestAccAppStreamImageDataSource_basic
=== PAUSE TestAccAppStreamImageDataSource_basic
=== CONT TestAccAppStreamImageDataSource_basic
--- PASS: TestAccAppStreamImageDataSource_basic (8.03s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/appstream 12.909s
@acwwat Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.61.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 the create timestamp comparison logic that determines the most recent image for the
aws_appstream_image
data source.Since the acceptance tests does not really check for the actual image to see whether it's the most recent, I've done a manual test by comparing the result from the following TF configuration and the console.
Results from re-apply after the code fix:
Relations
Closes #38561
References
Referred to the source code for the
aws_ecr_image
data source for timestamp comparison logic.Output from Acceptance Testing