-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: aws_cloudtrail sns_topic_name always shows changes #41262
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Confirmed this doesn't occur in |
Confirmed that it's caused by my recent change with #41168. The problem is that both the user guide and API documentation suggest that SNS topic name is just the name. There's no mention about an SNS topic from a different region or account. Rather than rolling back the change completely, let me see if it makes sense to compare SnsTopicArn from reading the resource to see if region and account ID are the same. If so, set SnsTopicName to just the name, otherwise set it to the ARN. |
AWS support case opened to seek clarification of the behavior for |
I tested just using the name but AWS throws an error because it cannot find the topic as it is in a different region so we need to pass an ARN. |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
Terraform Core Version
1.10.5
AWS Provider Version
5.85.0
Affected Resource(s)
Expected Behavior
Should not have any changes
Actual Behavior
Plan now showing changes required every single time on sns_topic_name. We are setting it to an ARN and the state is now saving it as the name only. We must use the ARN as it is in a different region so just name would not work. The plan shows a change from name -> arn every single time.
I think this relates to #41168
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: