Skip to content

Instantly share code, notes, and snippets.

@jastang
Created January 25, 2019 20:24
Show Gist options
  • Save jastang/e84d4f6e8b869020f7d25552e6233199 to your computer and use it in GitHub Desktop.
Save jastang/e84d4f6e8b869020f7d25552e6233199 to your computer and use it in GitHub Desktop.
Serverless configuration for RDS authentication
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