Instance Profiles
Create an Instance Profile
The example below will create an instance profile named EC2InstanceProfile
and add the SSMEC2RoleEpic
IAM role to it. Additional variables are shown to demonstrate the required dependencies.
Reference an Existing Instance Profile
The example below will reference an existing instance profile named DAEA-SHARED-MAIN-EPIC-ComputeStack-EPICAW1KPR001InstanceProfileB1181F51-6k1ztuITzaIz
. The key in the map object (EC2InstanceProfile
) is the name that will be used to reference the instance profile in other parts of the tfvars configuration.