Skip to content

Instantly share code, notes, and snippets.

@hassaku63
Last active July 4, 2020 07:45
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 hassaku63/0e4e61db60bd48b5d86459ceabb9dd34 to your computer and use it in GitHub Desktop.
Save hassaku63/0e4e61db60bd48b5d86459ceabb9dd34 to your computer and use it in GitHub Desktop.
provider:
name: aws
runtime: python3.8
profile: ${opt:profile, default}
stage: ${opt:stage, dev}
region: ${opt:region, us-east-1}
timeout: 30
environment:
# To tell lambda function to AWS AccountId by use pseudo-parameters plugin.
# AccountId is used to construct SQS Queue URL
AWS_ACCOUNT_ID: '#{AWS::AccountId}'
# MY_QUEUE_NAME is used to construct Queue URL in lambda.
# And also convenient to reference resource ARN in IAM Policy statement
MY_QUEUE_NAME: ${self:service}-my-queue-${self:provider.stage}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment