-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
If you want to access S3 from a Lambda function, AWS recommend you create a dedicated role that the Lambda function can then use. But... you still need to attach JSON policies to it!
https://aws.amazon.com/premiumsupport/knowledge-center/lambda-execution-role-s3-bucket/
A similar mechanism is available for EC2 instances: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-instance-access-s3-bucket/
So a command which can create a role using the same --read-only and suchlike options as the other commands would be really useful.
Maybe something like:
s3-credentials create-role name-of-role name-of-bucket1 name-of-bucket2 --read-only