IAM Instance Profile
An IAM Instance Profile in AWS is a container for an IAM Role that can be used by Amazon EC2 instances. It allows the instance to obtain temporary credentials and make API requests on behalf of the IAM role it is associated with. This enables EC2 instances to securely communicate with other AWS services. For more detailed information, please refer to the official AWS documentation.
Terrafrom Mappings:
aws_iam_instance_profile.arn
Supported Methods​
GET
: Get an IAM instance profile by nameLIST
: List all IAM instance profilesSEARCH
: Search IAM instance profiles by ARN
Possible Links​
iam-role
​
An IAM Role is essential within an IAM Instance Profile as it provides the permissions necessary for an EC2 instance to execute actions on services. The IAM Instance Profile serves as a wrapper to associate the IAM Role to an EC2 instance, thereby enabling it to inherit the permissions defined in the role.
iam-policy
​
IAM Policies define the permissions for an IAM Role, which in turn is part of an IAM Instance Profile. These policies stipulate what actions are allowed or denied and on which resources. The linkage between the instance profile and the policies ensures that the instance operates within the defined boundaries and adheres to security best practices.