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:
Tomohiro TAIRA 2015-07-01 13:07:31 +09:00
parent 3d81d83d01
commit 405ed57544
3 changed files with 0 additions and 3 deletions

View File

@ -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" {

View File

@ -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" {

View File

@ -39,7 +39,6 @@ resource "aws_iam_user" "lb" {
resource "aws_iam_access_key" "lb" {
user = "${aws_iam_user.lb.name}"
status = "Active"
}
```