Closed mabitt closed 2 years ago
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is your request related to a problem? Please describe.
When you remove an account from the ram_principals, the module will replace the associations and disrupt the current shared TGW by destroying and creating a new resource share.
This problem is related to how the module stores the
aws_ram_principal_association
in the state. For example, you have:and you remove the Acct3, the next plan/apply will return:
Describe the solution you'd like.
Maybe the list index could be replaced to the account number, so when the list is reordered it will nor remove existing shares.
Describe alternatives you've considered.
Manually edit the remote state removing the account and reordering the list.
Additional context
This will happen also if adding an account in the middle of the list.