-
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
[Bug]: security_group_names attribute incorrect on aws_elasticache_replication_group import #32835
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Had same issue today, imported aws_elasticache_replication_group in terraform and if security_group_names is not set specifically to [], on plan it shows that whole cluster must be replaced because of security_group_names change, setting it to null has no affect, just by brute forcing i set it to [] and plan now shows no changes |
I'm in the same situation here Terraform Core Version AWS Provider Version |
Happened to me also when I imported an Redis cluster to It gave me : although the security_group_ids did not change. Solved it with a lifecycle_rule ignore on security_group_names. 🤷 |
Thanks a lot for your report, helped me a lot in order to understand my issue!
Same here, solved it by defining |
Was able to fix it with this:
|
Still happening on aws provider version security_group_names = [] |
Can confirm I just hit something very similar, with an existing replication group trying to destroy and re-create itself because it wanted to add a blank |
Same at my side, |
Same on my side. The workaround has worked for me |
confirm this bug, provider version is |
Got the same bug in |
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. |
1 similar comment
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. |
This functionality has been released in v5.72.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. |
Terraform Core Version
1.3.7
AWS Provider Version
5.5.0
Affected Resource(s)
When importing an
aws_elasticache_replication_group
resource the attributesecurity_group_names
is imported asnull
.During subsequent
terraform plan
commands a recreation of the resource is requested as the plan wants the value to be[]
."security_group_names": [],
Current workaround is to manually modify the state and push the state fille with
terraform state push
.Expected Behavior
Terraform should not recreate a
aws_elasticache_replication_group
resource to bringsecurity_group_names
fromnull
to[]
.Actual Behavior
Terraform attempts to recreate the
aws_elasticache_replication_group
resource.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Will provide a minimal POC shortly
Steps to Reproduce
Will provide a minimal POC shortly
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: