将IAM用户,角色和组迁移到另一个aws帐户

时间:2016-05-19 09:12:46

标签: amazon-web-services amazon-iam

我想将所有iam用户,角色和群组迁移到另一个aws帐户。

有没有办法做到这一点?

1 个答案:

答案 0 :(得分:1)

是的,它们是terraformingterraform 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

Terraform是hashicorp的产品,您可以直接使用简单模板应用IAM等资源。

https://www.terraform.io/docs/providers/aws/r/iam_group.html#

https://www.terraform.io/intro/index.html