-
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
aws_appstream_image_builder throws error with empty domain_join_info #26677
Comments
We are having the same issue when testing 4.36.1. However, our domain_join_info is NOT empty (confirmed by the last applied state file). |
Hey @jhancock93 👋 Thank you for following up. I see my mistake now in that the linked issue/PR were for the |
@justinretzolk I created a branch with small changes that fix this, if you want to check out the diff. I was attempting to create a test for it as well, but my AWS access is very limited and I can't create the necessary resources to complete it. |
I am still facing this error in v4.39.0 |
Downgraded to 4.28 and still getting the same error |
I'm experiencing the same issue with v4.41.0. |
I'm experiencing the same issue with 4.45.0 |
Any workaround? Because even downgrading to previous versions doesn't work. |
I've identified 4d802fe as the commit which might have introduced the regression, which would mean that downgrading to before v4.28.0 might be a workaround for this bug. |
I have identified this section of code is causing the issue, the method in image_builder.go
both domain_join_info and vpc_config is throwing error: after the section of code setting domain_join_info is removed, below will surface for vpc_config.
I may be able to help, however with limited knowledge on golang and code structure, need more time on this. |
I see exactly how this regression occurred. When #26454 was submitted, an acceptance test for appstream_fleet was performed, however, code in internal/services/appstream/fleet.go is also referenced in internal/services/appstream/image_builder.go, and that code was broken by the mentioned PR, and it was not detected because the acceptance tests for appstream_image_builder were not run. |
anyone looking into the PR, whether is it ok to go forward? |
Any update on this? Still blocking our development. |
Is there a way to push this? or collaborate to make it happen? |
I've got a PR up (#28195) and linked to this, with all the appropriate acceptance testing performed. I would be happy to help out and do whatever is needed to make my PR viable for merging. |
…-26677 aws_appstream_image_builder: domain_join_info and vpc_config throw error #26677
This functionality has been released in v4.51.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.2.1
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
│ Error: error setting
domain_join_info
for AppStream ImageBuilder (My-Image-Builder): domain_join_info: '': source data must be an array or slice, got map│
│ with module.persistent.aws_appstream_image_builder.image_builder[0],
│ on ../../modules/persistent/appstream.tf line 6, in resource "aws_appstream_image_builder" "image_builder":
│ 6: resource "aws_appstream_image_builder" "image_builder" {
Panic Output
Expected Behavior
AppStream Image Builder should be created without errors
Actual Behavior
AppStream image builder resource fails during terraform plan phase with:
error domain_join_info: '': source data must be an array or slice, got map
Steps to Reproduce
terraform plan
Important Factoids
This error did not occur with hashicorp aws provider version v4.20.0
References
The text was updated successfully, but these errors were encountered: