Skip to content

aws.iam-user resource

Description

User is an IAM user. Name and path change in place through UpdateUser, the permissions boundary changes through its own put and delete calls, tags are reconciled through the IAM tag calls, and force destroy controls delete-time cleanup of dependent IAM credentials and policies.

Source: internal/service/iam/user_rsrc.go:38

Example usage:

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

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

Inputs

name

string

required

path

string

default /

permissions-boundary

optional(string)

force-destroy

boolean

default false

tags

map(string)

Input Constraints

Permissions boundary rules

permissions-boundary must be at most 2048 characters.

Rule logic
When
input.permissions-boundary != null
Require
input.permissions-boundary == null
|| @core.length(input.permissions-boundary) <= 2048

Outputs

arn

string

unique-id

string

name

string

path

string

permissions-boundary

optional(string)

tags

map(string)