Skip to main content
Providers

IamInstanceProfile

A resource of the AWS provider, version 0.3.0, in its IAM group. Import it with:

import IamInstanceProfile from "aws/iam"

Example

resource IamInstanceProfile example {
    name = "example-value"
    path = "example-value"
    role = "example-value"
    tags = "..."
}

Properties

Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.

NameTypeDefaultRequiredDescription
namestring—NoName of the instance profile
pathstring—NoPath for the instance profile (default: /)
rolestring—NoName of the IAM role to associate with the instance profile
tagsobject—NoTags to apply to the instance profile

Set by AWS after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.

NameTypeImportableDescription
instanceProfileIdstringNoThe stable and unique ID for the instance profile
arnstringYesThe Amazon Resource Name (ARN) of the instance profile
createDatestringNoThe date and time when the instance profile was created

On this page