mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
docs/aws: Add documentation for iam_role/policy import (#10894)
This commit is contained in:
parent
fc6e2a1b79
commit
2d894bae48
@ -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
|
||||
```
|
@ -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
|
||||
```
|
Loading…
Reference in New Issue
Block a user