-
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_fleet_stack_association not working correctly #22625
Comments
I am facing the exact issue! any solution to resolve this issue? |
The workaround appears to be to import the resource. It seems to create correctly, but never end up in the state. After you import it, the state seems consistent. |
A temporary workaround (until this bug is fixed), that I'm testing is:
EDIT: from testing, this works some times, but it's still flaky with some inconsistent terraform state errors. |
Moved my comment from the duplicate issue. The bug seems to be caused by this line:
Where the arguments to The function for reference:
|
Any update on this at all? Appreciate any help! |
facing the same error,any fix for this.. |
I have the same issue... When I build a fleet/stack, including the stack association resource, the apply runs and I get this error:
Notice the names are reversed in the error message, "No stack "My-Fleet" associated"... When viewing from the AWS console, the stack and fleet are associated correctly. Next I tried to add a dependency in attempt to give Terraform some "guidance".
I still get the error. When destroying, I get these errors:
I have been using arnvid/terrafrom-provider-appstream without this issue. I was trying to convert to using hashicorp/aws but this issue is a blocker for sure. |
I have the same issue
Any update on this, please? |
This worked for me... But we really need a permanent fix. It's only one line of code ;) |
this issue is still open @rednevals has find this quick fix which I tested and it is working |
FYI: I sent an email with details to one of the contributors of the commit that caused this issue. Hopefully they will respond. I will create a PR if needed... |
Just chiming in here to say I have the same issue and would like to see this solved :) |
I have closed the project and just fix it via the cli
…On Tue, May 17, 2022, 7:52 PM Niel Dejonghe ***@***.***> wrote:
Just chiming in here to say I have the same issue and would like to see
this solved :)
—
Reply to this email directly, view it on GitHub
<#22625 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK44H3C5BCYHGF2NNQWBM7LVKOXEPANCNFSM5MEZISCQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@hasnain-tahir you mean you fixed it by using the workaround provided by @rednevals ? |
Correct.
…On Wed, May 18, 2022, 4:38 PM Niel Dejonghe ***@***.***> wrote:
@hasnain-tahir <https://github.com/hasnain-tahir> you mean you fixed it
by using the workaround provided by @rednevals
<https://github.com/rednevals> ?
—
Reply to this email directly, view it on GitHub
<#22625 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK44H3FFQSHRYB74ASWQCV3VKTJEJANCNFSM5MEZISCQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have encountered this issue as well. Hoping for a fix |
Any update on this? |
This functionality has been released in v4.21.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
Affected Resource(s)
aws_appstream_fleet_stack_association
Terraform Configuration Files
The example provided here does not seem to create an
aws_appstream_fleet_stack_association
in the state, yet the association itself seems to be created in AWS.Expected Behavior
The association should be created in the state
Actual Behavior
Terraform believes that the association was not created in a subsequent run, and then tries to create it - but finds that it already exists. You then have to import the resource manually.
If you then update or taint a stack, there appears to be a missing dependency to re-create the association.
Steps to Reproduce
Output (new resource)
Output (updating stack resource)
Looking at the creating a resource error output, it looks like "fleet_name" and "stack_name" are somehow inverted somewhere in the logic. I have double checked my references and they are correct - which leads me to believe they might be swapped in the logic of the provider somehwere...
The text was updated successfully, but these errors were encountered: