Skip to content

aws.iam-access-key resource

Description

AccessKey manages an IAM user's access key. IAM only returns the secret when creating the key, so Read preserves the create-only secret outputs from the prior state while refreshing the key metadata IAM can still report.

Source: internal/service/iam/access_key_rsrc.go:39

Example usage:

imports: {
  aws: 'github.com/cloudboss/unobin-library-aws'
}

resources: {
  example: aws.iam-access-key {
    # Set input fields here.
  }
}

Inputs

user-name

string

required

pgp-key

string

default

status

string

default Active

Input Constraints

Status rules

status must be Active or Inactive.

Rule logic
Require
input.status == 'Active'
|| input.status == 'Inactive'

Outputs

access-key-id

string

user-name

string

create-date

string

status

string

secret

optional(string)

sensitive

ses-smtp-password-v4

optional(string)

sensitive

encrypted-secret

optional(string)

encrypted-ses-smtp-password-v4

optional(string)

key-fingerprint

optional(string)