--- layout: "aws" page_title: "AWS: aws_iam_access_key" sidebar_current: "docs-aws-resource-iam-access-key" description: |- 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 ```hcl resource "aws_iam_access_key" "lb" { user = "${aws_iam_user.lb.name}" pgp_key = "keybase:some_person_that_exists" } 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 = < **NOTE:** The encrypted secret may be decrypted using the command line, for example: `terraform output secret | base64 --decode | keybase pgp decrypt`. * `ses_smtp_password` - The secret access key converted into an SES SMTP password by applying [AWS's documented conversion algorithm](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html#smtp-credentials-convert). * `status` - "Active" or "Inactive". Keys are initially active, but can be made inactive by other means.