Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

Lambda Function Role format #3

Description

@jpb

Laundry did not produce an error for:

Example template:

Resources:
  LambdaFunction:
    Type: AWS::Lambda::Function
    Properties:
      Handler: index.handler
      FunctionName: !Ref AWS::StackName
      Role: some-string
      Runtime: nodejs8.10                                                                                                               
      Timeout: 10
      Code:                                                                                                                               
        ZipFile: ''

Error from CloudFormation:

1 validation error detected: Value
                          'some-string' at 'role' failed to
                          satisfy constraint: Member must satisfy regular expression
                          pattern:
                          arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmissed errorLaundry should have caught an error but it didn't

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions