How do I remove a user from Reference Architecture? #728
-
I would like to remove a user account from the reference architecture setup. I have removed their entry from users.yml but when running
I note in the underlying terraform docs there is a mention of a "force_destroy" process but not sure how to translate that to the Reference Architecture flow. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Since MFA tokens are likely created outside of Terraform, you will need to delete these prior to running terraform to remove the account. I wrote a script for you to handle this a bit easier than Click Ops in the console. I added in deletion of access keys as well, just in case those have to be removed prior to user deletion as well. Extend as you see fit, of course! This script just echoes to the screen, but can trivially be modified to actually run the aws commands.
|
Beta Was this translation helpful? Give feedback.
Since MFA tokens are likely created outside of Terraform, you will need to delete these prior to running terraform to remove the account.
I wrote a script for you to handle this a bit easier than Click Ops in the console. I added in deletion of access keys as well, just in case those have to be removed prior to user deletion as well. Extend as you see fit, of course! This script just echoes to the screen, but can trivially be modified to actually run the aws commands.