Scenario: You need to provide AWS Lambda functions access to specific S3 buckets. How would you configure IAM roles to achieve this securely?

  • Allow public access to S3 buckets
  • Create an IAM role with a policy granting access to the required S3 buckets, and attach this role to the AWS Lambda functions.
  • Share AWS access keys with Lambda functions
  • Use a single IAM user for all Lambda functions
Creating an IAM role with a policy granting access to the required S3 buckets, and attaching this role to the AWS Lambda functions is the correct and secure approach.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *