Skip to content

Create IAM role if it does not already exist #22

@jammycakes

Description

@jammycakes

If no role is provided, we should provide an option to create one automatically. This needs to include the AWSLambdaBasicExecutionRole policy by default.

Other policies could be configured. A possible configuration schema might look like this:

role:
  name: lambda-role
  create: true
  policies:
    - name: AWSLambdaDynamoDBExecutionRole
    - arn: arn:aws:iam::aws:policy/AmazonS3FullAccess
    - inline: |
      {
        ...
      }

(create: false would be the default, and would throw an error if the role does not exist.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions