Instance Profile
An instance profile is a container that holds a single IAM role and lets you attach that role to an Amazon EC2 instance. When the instance starts, code running on it can obtain temporary AWS credentials tied to the role, so you don't have to store long-lived access keys on the machine. In effect, it is the mechanism that passes role information to an EC2 instance.
In AWS IAM, an instance profile is a container that holds exactly one IAM role and serves as the mechanism for passing that role to an EC2 instance at launch. Once associated, workloads on the instance can retrieve temporary, automatically rotated AWS credentials derived from the role, eliminating the need for statically stored access keys. The instance profile governs what the instance is authorized to do (the role and its attached policies determine permissions), and is limited to containing a single IAM role.
Why it matters
Instance profiles address one of the most persistent risks in cloud operations: long-lived, statically stored access keys sitting on a compute instance. When code needs to call AWS APIs, the naive approach is to embed an access key and secret on the machine, where they can be leaked through misconfiguration, source-control commits, or a compromised host. An instance profile removes that need by allowing workloads on an EC2 instance to retrieve temporary, automatically rotated credentials derived from an attached IAM role, so there are no permanent keys to steal or rotate manually.
Because the instance profile is the delivery mechanism that binds an IAM role to an instance, it sits directly on the boundary between authorization design and runtime credential distribution. The role and its attached policies determine what the instance is authorized to do; the instance profile determines which instance receives those permissions. Getting this pairing right is central to least-privilege enforcement in AWS, since an overly broad role attached via an instance profile grants that scope to any process running on the instance. In most deployments this makes the instance profile a natural focus for access reviews and blast-radius analysis.
Who it's relevant to
Inside Instance Profile
Common questions
Answers to the questions practitioners most commonly ask about Instance Profile.