我想将所有iam用户,角色和群组迁移到另一个aws帐户。
有没有办法做到这一点?
答案 0 :(得分:1)
是的,它们是terraforming
和terraform apply
将现有AWS资源导出为Terraform样式(tf,tfstate)
terraforming iamg # IAM Group
terraforming iamgm # IAM Group Membership
terraforming iamgp # IAM Group Policy
terraforming iamip # IAM Instance Profile
terraforming iamp # IAM Policy
terraforming iamr # IAM Role
terraforming iamrp # IAM Role Policy
terraforming iamu # IAM User
terraforming iamup # IAM User Policy
http://terraforming.dtan4.net/
https://github.com/dtan4/terraforming
Terraform是hashicorp的产品,您可以直接使用简单模板应用IAM等资源。
https://www.terraform.io/docs/providers/aws/r/iam_group.html#