docs/aws: Add documentation for iam_role/policy import (#10894)

This commit is contained in:
Paul Stack 2016-12-22 12:41:43 +00:00 committed by GitHub
parent fc6e2a1b79
commit 2d894bae48
2 changed files with 16 additions and 0 deletions

View File

@ -56,3 +56,11 @@ The following attributes are exported:
* `name` - The name of the policy.
* `path` - The path of the policy in IAM.
* `policy` - The policy document.
## Import
IAM Policies can be imported using the `arn`, e.g.
```
$ terraform import aws_iam_policy.administrator arn:aws:iam::123456789012:policy/UsersManageOwnCredentials
```

View File

@ -50,3 +50,11 @@ The following attributes are exported:
* `arn` - The Amazon Resource Name (ARN) specifying the role.
* `create_date` - The creation date of the IAM role.
* `unique_id` - The stable and unique string identifying the role.
## Import
IAM Roles can be imported using the `name`, e.g.
```
$ terraform import aws_iam_role.developer developer_name
```