What is an instance profile?
BeginnerConceptGlobal Infrastructure and IAM Basics
Answer
An instance profile is the container that passes an IAM role to an EC2 instance. The console hides it by creating a same-named profile, but the CLI and CloudFormation expose it (AWS::IAM::InstanceProfile). The instance reads rotating credentials from the metadata service at /latest/meta-data/iam/security-credentials/<role>.
aws ec2 associate-iam-instance-profile --instance-id i-0abc \
--iam-instance-profile Name=app-role
More on Global Infrastructure and IAM Basics
What is the difference between a Region, an Availability Zone and an edge location?BeginnerHow do you choose a Region for a workload?BeginnerWhat is the difference between an AZ name like `us-east-1a` and an AZ ID like `use1-az1`?IntermediateExplain the shared responsibility model.BeginnerWhat is the root user and how should you treat it?BeginnerWhat is the difference between an IAM user, group and role?Beginner