-
Notifications
You must be signed in to change notification settings - Fork 124
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
awscc_chatbot_slack_channel_configuration always tries to update customization_resource_arns even after applying #2118
Comments
Thank you for opening the issue @cswilliams . I tried to reproduce this on my end and couldn't. Can you review if there is anything else on your configuration different from mine which is causing this ? ( maybe more sns topics than one ?) I started off from v1.20.0 and deployed the infra and upgraded my awscc provider to 1.23.0 and did a tf apply again.
|
Sure, will try to provide more info. So I have an I have a module which creates this awscc_chatbot_slack_channel_configuration in several different AWS accounts. I was noticing in one of my staging accounts, I end up creating two
Here's a similar resource from the same account that doesn't have the bug:
One difference between the two that I could see is that the one with the bug has the us-east-1 SNS topic listed first. I have a production AWS account which creates two identical resources to the above and in that account, both my app_alerts and devops_alerts resources suffer from the bug and both have the us-east-1 SNS topic listed first. So I wonder if it might have something to do with an sns topic in another region being listed first? Really strange though. I have some other AWS accounts where i'm creating awscc_chatbot_slack_channel_configuration but only using one SNS topic in us-east-2 and these don't suffer from the bug either. I'll also mention that the bug appeared in 1.22.0. When I downgrade to 1.21.0, it goes away. The bug also still exists in 1.23.0. If there's anything else I can provide, lemme know. |
I just tried |
Sorry, I must have accidentally clicked the closed button when I commented last. I did not mean to close this issue. I had some time today to dig into this since it's preventing me from upgrading to the latest awscc versions. I built the provider locally and then ran a git bisect. I found the offending commit is: 6355330 I'm guessing adding the At any rate, after much trial and error, I discovered that this issue appears to be caused by the I'm unsure what governs the order, but it doesn't appear to be based on the order provided when you create the channel configuration. I have multiple AWS accounts managed with the same exact terraform module, slack configuration, and sns topics and the order is different across accounts. Adding/removing SNS topics in a different order or recreating the entire channel configuration also does not change the order (at least in my tests). It's strange to me though that adding the It would definitely be nice if the old behavior could be restored so that the order does not matter. I could see people hitting this bug if they create a channel configuration and then the api chooses to return the sns topics in a different order that what is defined in their |
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Terraform always tries to apply the following, even after applying:
In my tfstate file I see this change for the resource:
Expected Behavior
It should not keep prompting to apply this even after applying.
Actual Behavior
It keeps prompting to apply this change even after applying.
Steps to Reproduce
Versions:
awscc:
1.22.0
aws:
5.80.0
terraform:
1.10.1
terraform apply
Important Factoids
1.20.0
to1.22.0
terraform import
but that had no affect.References
The text was updated successfully, but these errors were encountered: