IAM Instance Profile.
import { InstanceProfile } from 'aws-cdk-lib/aws-iam';Or use the module namespace:
import * as iam from 'aws-cdk-lib/aws-iam';
// iam.InstanceProfileConfiguration passed to the constructor as InstanceProfileProps.
instanceProfileNameOptionalstringThe name of the InstanceProfile to create.
Default: - generated by CloudFormation
pathOptionalstringThe path to the InstanceProfile.
Default: /
roleOptionalIRoleAn IAM role to associate with the instance profile that is used by EC2 instances. The role must be assumable by the service principal `ec2.amazonaws.com`:
Default: - a role will be automatically created, it can be accessed via the `role` property
Everything you need to know about AWS IAM on one page. HD quality, print-friendly.
Download Free Infographicaws-iam