Remove status argument from `aws_iam_access_key`
`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
This commit is contained in:
parent
3d81d83d01
commit
405ed57544
|
@ -15,7 +15,6 @@ Provides an IAM access key. This is a set of credentials that allow API requests
|
|||
```
|
||||
resource "aws_iam_access_key" "lb" {
|
||||
user = "${aws_iam_user.lb.name}"
|
||||
status = "Active"
|
||||
}
|
||||
|
||||
resource "aws_iam_user" "lb" {
|
||||
|
|
|
@ -20,7 +20,6 @@ resource "aws_iam_user" "lb" {
|
|||
|
||||
resource "aws_iam_access_key" "lb" {
|
||||
user = "${aws_iam_user.lb.name}"
|
||||
status = "Active"
|
||||
}
|
||||
|
||||
resource "aws_iam_user_policy" "lb_ro" {
|
||||
|
|
|
@ -39,7 +39,6 @@ resource "aws_iam_user" "lb" {
|
|||
|
||||
resource "aws_iam_access_key" "lb" {
|
||||
user = "${aws_iam_user.lb.name}"
|
||||
status = "Active"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue