Migrate users from account-baseline-security to iam-users-and-groups #807
-
Trying to move users out of security/_global/account-baseline (uses account-baseline-security) and into a new module security/_global/iam/users using iam-users-and-groups Initially we had our users deployed using terraform-aws-service-catalog/landingzone/account-baseline because we only had a few engineers/architects. We have since added more users to our admin staff. Managing the users has become very unwieldy using account-baseline-security. And so we want to split off the users into a separate module and iam-users-adn-groups seems to be the best way. I am trying to do a terragrunt state mv command, but when I try to do a terragrunt plan in the new folder/location it says:
But it is definitely in the users.yml file. Thinking I just imported it wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 6 replies
-
We don't want to delete and recreate the users. |
Beta Was this translation helpful? Give feedback.
-
@iangrunt Could you assist with this question? |
Beta Was this translation helpful? Give feedback.
-
@justin-octo, could you describe all the steps you took in terms of running |
Beta Was this translation helpful? Give feedback.
-
If I'm totally messing this up (likely), it would be nice to have a step-by-step of how to do it properly somewhere. By "it", I mean separate users out from account-baseline-security and move them to iam-users-and-groups. |
Beta Was this translation helpful? Give feedback.
-
We use this in the
|
Beta Was this translation helpful? Give feedback.
-
Each of the yml files contains a list of users in this format (obviously different groups for different users):
|
Beta Was this translation helpful? Give feedback.
-
I think I got it...
is what I needed |
Beta Was this translation helpful? Give feedback.
-
New Steps:
|
Beta Was this translation helpful? Give feedback.
-
A couple of times I had to restore the statefile from the local copy to the S3 bucket, and delete the lock Id in DynamoDB. I'm wondering if I could have just done this rather than the |
Beta Was this translation helpful? Give feedback.
New Steps: