Skip to content

Command for creating roles #59

@simonw

Description

@simonw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions