mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-14 13:01:34 -04:00
`aws_iam_access_key` resource is not supported `status` field. Example from https://www.terraform.io/docs/providers/aws/r/iam_access_key.html: resource "aws_iam_access_key" "lb" { user = "${aws_iam_user.lb.name}" status = "Active" } resource "aws_iam_user" "lb" { name = "loadbalancer" path = "/system/" } Result: $ terraform plan There are warnings and/or errors related to your configuration. Please fix these before continuing. Errors: * aws_iam_access_key.lb: "status": this field cannot be set
1.0 KiB
1.0 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| aws | AWS: aws_iam_user | docs-aws-resource-iam-user | Provides an IAM user. |
aws_iam_user
Provides an IAM user.
Example Usage
resource "aws_iam_user" "lb" {
name = "loadbalancer"
path = "/system/"
}
resource "aws_iam_access_key" "lb" {
user = "${aws_iam_user.lb.name}"
}
resource "aws_iam_user_policy" "lb_ro" {
name = "test"
user = "${aws_iam_user.lb.name}"
policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"ec2:Describe*"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
EOF
}
Argument Reference
The following arguments are supported:
name- (Required) The user's name.path- (Optional, default "/") Path in which to create the user.
Attributes Reference
The following attributes are exported:
-
unique_id- The unique ID assigned by AWS. -
arn- The ARN assigned by AWS for this user.