I want to start managing the policies on pre-existing IAM roles using terraform. I have many IAM roles with policies attached to them in AWS account. These roles were created manually via the console. Now i want to start managing them using terraform. What is the best way to do this? Thanks, Deepak
1 Answers
-1
votes
Here is how I would do it.
- Create those roles in Terraform
- Import those roles into your Terraform state
- Run terraform plan until it returns no changes
- Commit to source control
Keep doing that cycle until everything has been migrated over.