View a markdown version of this page

WKLD.01 Use IAM roles for compute environment permissions - AWS Prescriptive Guidance

WKLD.01 Use IAM roles for compute environment permissions

In AWS Identity and Access Management (IAM), a role represents a set of permissions that can be assumed by an IAM user, an AWS service, or a federated identity for a configurable period of time. Using roles removes the need to store or manage long-term credentials, which reduces the chance of unintended use. Assign an IAM role directly to Amazon Elastic Compute Cloud (Amazon EC2) instances, AWS Fargate tasks and services, AWS Lambda functions, and other AWS compute services that support IAM roles. Applications that use an AWS SDK and run in these compute environments automatically use the IAM role credentials for authentication.

For instructions on using IAM roles with services, see the following documentation: