Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Auto-increment destinations of origin-request to latest version of lambda@edge #1123

Open
@kamillle

Description

@kamillle

Is your feature request related to a problem? Please describe.

I tried to modify forward cookie rules of cloudfront by serverless.yml. This way cannot autromatically update lambda@edgy version specified in cloudfront, we have to manually update the version by modifing the code.

stage: production
nextamplified:
  component: "@sls-next/[email protected]"
  inputs:
    bucketName: sample
    roleArn: arn:aws:iam::000000000000:role/samlple
    build:
    cloudfront:
      origins:
        - url: http://sample.s3.us-east-1.amazonaws.com
          pathPatterns:
            _next/image*:
              minTTL: 0
              defaultTTL: 60
              maxTTL: 31536000
              forward:
                cookies: none
              lambda@edge:
                origin-request: arn:aws:lambda:us-east-1:000000000000:function:sample:1

Describe the solution you'd like

How about that serverless.yml accepts unqualified ARN of lambda and send qualified ARN that specifies the latest version of lambda to cloudfront.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions