Created
January 25, 2019 20:24
-
-
Save jastang/e84d4f6e8b869020f7d25552e6233199 to your computer and use it in GitHub Desktop.
Serverless configuration for RDS authentication
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.7 | |
stage: 'production' | |
region: us-east-1 | |
iamRoleStatements: | |
- Effect: "Allow" | |
Action: | |
- "rds:*" | |
- "sts:*" | |
Resource: | |
- "*" | |
# VPC configurations | |
functions: | |
lambda_abc: | |
handler: handler.lambda_abc | |
vpc: | |
subnetIds: | |
- subnet-XXXXXXXXXXXXXXXXX | |
- subnet-YYYYYYYYYYYYYYYYY | |
securityGroupIds: | |
- sg-ZZZZZZZZZZZZZZ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment