A developer is creating an IAM role that will be used by an AWS Lambda function to access other AWS resources. The developer needs to ensure that the AWS Lambda service itself is authorized to assume this role. Which type of policy must the developer configure to define which service principal can assume the role?
- An IAM trust policyCevap
- BAn identity-based permissions policy
- CA resource-based policy on the Lambda function
- DAn IAM permissions boundary
Cevap
An IAM trust policy
An IAM trust policy (also known as an assume role policy document) defines the trust relationship for an IAM role. It is a resource-based policy attached to the role itself that specifies which security principals (such as the AWS Lambda service principal, 'lambda.amazonaws.com') are allowed to assume the role using the STS AssumeRole API.
Adım Adım Çözüm
Anahtar Kavram
IAM Trust Policies vs. Permissions Policies