Last active
July 4, 2020 07:45
-
-
Save hassaku63/0e4e61db60bd48b5d86459ceabb9dd34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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