Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created May 23, 2022 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardgrantserverless/54b0d733632dcce26cb3bd566d33b814 to your computer and use it in GitHub Desktop.
Save richardgrantserverless/54b0d733632dcce26cb3bd566d33b814 to your computer and use it in GitHub Desktop.
custom:
# change this, so it's unique for your setup
bucket_name: ${self:provider.stage,opt:stage}-${env:USER}-screenshots
# these variables are passed on through ApiGateway, to be used
# in your functions in the event.stageVariables
stageVariables:
bucketName: ${self:custom.bucket_name}
endpoint: {"Fn::Join": ["", ["https://", { "Fn::GetAtt": "CloudFrontEndpoint.DomainName" }, "/"]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment