Skip to content

Does not work #14

Description

@n3v3rd1e

Hello, I assume it must be a mistake on my side, as it seems to work for others, but I just really cannot find any.
I have serverless @1.74.1, is it maybe not compatible with this plugin?

layers:
      - arn:aws:lambda:eu-west-1:65435731276:layer:google-ads-api:latest
plugins:
  modules:
    - serverless-webpack
    - serverless-latest-layer-version
    - serverless-offline # @note must be last plugin

I'm getting the same error about name constraints as others.

e.g:
An error occurred: FLSLSDPersistLsdTestResultsLambdaLambdaFunction - 1 validation error detected: Value '[arn:aws:lambda:ap-southeast-2:xxxxxxxxxxxx:layer:oraclelib:latest]' at 'layers' failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 140, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-]+:[0-9]+)|(arn:[a-zA-Z0-9-]+:lambda:::awslayer:[a-zA-Z0-9-]+)] (Service: AWSLambdaInternal; Status Code: 400; Error Code: ValidationException; Request ID: 6b295596-80c7-425b-b8f3-7c03673b333c).

Is there anything more to do, than install the plugin and use it the serverless as I did?.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions