-
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
[New Data Source]: aws_appstream_image #38225
[New Data Source]: aws_appstream_image #38225
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Merging to fix go mod and go sum.
…i/terraform-provider-aws into f/appstream-image-describe Merge conflict fix.
if !data.Arn.IsNull() { | ||
describeImagesInput.Arns = []string{data.Arn.ValueString()} | ||
} | ||
// |
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.
cleanup comment
} | ||
image := filteredImages[0] | ||
|
||
data.Type = fwtypes.StringEnum[awstypes.VisibilityType]{}.StringEnumValue(string(image.Visibility)) |
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.
This can be simplified by using the following
data.Type = fwtypes.StringEnum[awstypes.VisibilityType]{}.StringEnumValue(string(image.Visibility)) | |
data.Type = fwtypes.StringEnumValue[awstypes.VisibilityType](image.Visibility) |
needs CHANGELOG entry |
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 TESTS=TestAccAppStreamImageDataSource_basic PKG=appstream
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.4 test ./internal/service/appstream/... -v -count 1 -parallel 20 -run='TestAccAppStreamImageDataSource_basic' -timeout 360m
=== RUN TestAccAppStreamImageDataSource_basic
=== PAUSE TestAccAppStreamImageDataSource_basic
=== CONT TestAccAppStreamImageDataSource_basic
--- PASS: TestAccAppStreamImageDataSource_basic (9.81s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/appstream 15.630s
This functionality has been released in v5.57.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 datasource will allow practitioners to read the description of an existing AWS Appstream2.0 image with terraform.
Relations
Relates #6508
Closes #22536
References
https://docs.aws.amazon.com/appstream2/latest/APIReference/API_DescribeImages.html
Output from Acceptance Testing