Skip to content

aws.iam-instance-profile resource

Description

InstanceProfile is a container that an EC2 instance assumes to gain the permissions of a single IAM role. The name and path fix the profile's identity, so changing either replaces the profile. The role is the one role the profile holds; it is attached after the profile exists and can be swapped in place. Tags are reconciled to match the configuration on every apply.

Source: internal/service/iam/instance_profile_rsrc.go:27

Example usage:

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

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

Inputs

instance-profile-name

string

required

path

optional(string)

role

optional(string)

tags

map(string)

Input Constraints

This kind declares no extra input constraints.

Outputs

arn

string

instance-profile-id

string

create-date

string