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

You don't need to sync the folder .serverless #22

@tobiasbenkner

Description

@tobiasbenkner

you don't need to go through the sync step if you specify the existing distribution-id in the serverless.yml. so you don't need to create an extra s3 bucket to sync the builds.

name: prod-your-site-name

prod-your-site-name:
  component: '@sls-next/serverless-component@latest'
  inputs:
    bucketName: prod-your-site-name-s3
    description: "Lambda@Edge for prod-your-site-name"
    name:
      defaultLambda: prod-your-site-name-lambda
      apiLambda: prod-your-site-name-lambda
    domain: ["prod-your-site-name", "bobhall.net"]
    publicDirectoryCache: true
    runtime:
      defaultLambda: "nodejs14.x"
      apiLambda: "nodejs14.x"
    cloudfront:
      distributionId: your-distribution-id # https://us-east-1.console.aws.amazon.com/cloudfront/

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