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

Lambda Function Role format #3

Open
jpb opened this issue Jan 11, 2019 · 0 comments
Open

Lambda Function Role format #3

jpb opened this issue Jan 11, 2019 · 0 comments
Labels
bug Something isn't working missed error Laundry should have caught an error but it didn't

Comments

@jpb
Copy link
Contributor

jpb commented Jan 11, 2019

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+=,.@\-_/]+
@jpb jpb added bug Something isn't working missed error Laundry should have caught an error but it didn't labels Jan 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working missed error Laundry should have caught an error but it didn't
Projects
None yet
Development

No branches or pull requests

1 participant