AWS::IAM::InstanceProfileCreates a new instance profile. For information about instance profiles, see [Using instance profiles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2_instance-profiles.html). For information about the number of instance profiles you can create, see [object quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the *User Guide*.
3 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Roles | Array<string> | Required |
InstanceProfileName | string | Create-only |
Path | string | Create-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IAM::InstanceProfile
Resources:
MyResource:
Type: AWS::IAM::InstanceProfile
Properties:
Roles: []Permissions CloudFormation needs in your IAM role to manage this resource.
iam:CreateInstanceProfileiam:PassRoleiam:AddRoleToInstanceProfileiam:GetInstanceProfileiam:GetInstanceProfileiam:PassRoleiam:RemoveRoleFromInstanceProfileiam:AddRoleToInstanceProfileiam:GetInstanceProfileiam:GetInstanceProfileiam:RemoveRoleFromInstanceProfileiam:DeleteInstanceProfileiam:ListInstanceProfilesEverything you need to know about IAM on one page. HD quality, print-friendly.
Download Free InfographicInstanceProfileNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
InstanceProfileNamePath