When specifying name, type, and most_recent, the AppStream image shared from another AWS account should be retrieved.
Actual Behavior
An error occurred.
Relevant Error/Panic Output Snippet
Error: reading AWS AppStream 2.0 Image Data Source (<null>): couldn't find resource
with data.aws_appstream_image.al2[0],
on appstream.tf line 192, in data "aws_appstream_image" "al2":
192: data "aws_appstream_image" "al2" {
couldn't find resource
Terraform Configuration Files
data "aws_appstream_image" "al2" {
count = local.flag ? 1 : 0
name = "sample-al2-jp-image"
type = "SHARED"
most_recent = true
}
Steps to Reproduce
Pre-share the AppStream image from another AWS account with the settings Use for Image Builder = True and Use for Fleet = True.
Execute terraform plan.
Debug Output
No response
Panic Output
No response
Important Factoids
Additional Information:
The error did not occur when using name_regex instead of name.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.8.3
AWS Provider Version
5.68.0
Affected Resource(s)
data aws_appstream_image
Expected Behavior
When specifying
name
,type
, andmost_recent
, the AppStream image shared from another AWS account should be retrieved.Actual Behavior
An error occurred.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
Additional Information:
The error did not occur when using
name_regex
instead ofname
.References
No response
Would you like to implement a fix?
No