Skip to content

aws.iam-user-policy-attachment resource

Description

UserPolicyAttachment attaches a managed policy to an IAM user. The user name and policy ARN are the identity, and IAM has no in-place update, so both inputs are replace-only.

Source: internal/service/iam/user_policy_attachment_rsrc.go:29

Example usage:

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

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

Inputs

user

string

required

policy-arn

string

required

Input Constraints

This kind declares no extra input constraints.

Outputs

user

string

policy-arn

string