Files
opentf/website/source/docs/providers/aws/r/iam_access_key.html.markdown
Paul Hinze eb150ae025 provider/aws: add ses_smtp_password to iam_access_key
AWS gives instructions for converting AWS credentials into SES SMTP
credentials here:

https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html#smtp-credentials-convert

This implements their algorithm and yields the result as an attribute on
`iam_access_key`.
2015-09-03 13:01:04 -05:00

1.5 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_iam_access_key docs-aws-resource-iam-access-key Provides an IAM access key. This is a set of credentials that allow API requests to be made as an IAM user.

aws_iam_access_key

Provides an IAM access key. This is a set of credentials that allow API requests to be made as an IAM user.

Example Usage

resource "aws_iam_access_key" "lb" {
    user = "${aws_iam_user.lb.name}"
}

resource "aws_iam_user" "lb" {
    name = "loadbalancer"
    path = "/system/"
}

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:

  • user - (Required) The IAM user to associate with this access key.

Attributes Reference

The following attributes are exported:

  • id - The access key ID.
  • user - The IAM user associated with this access key.
  • secret - The secret access key. Note that this will be written to the state file.
  • ses_smtp_password - The secret access key converted into an SES SMTP password by applying AWS's documented conversion algorithm.
  • status - "Active" or "Inactive". Keys are initially active, but can be made inactive by other means.