sls-db-migrations
Version:
Serverless wrapper for node.js db-migrations framework
25 lines (20 loc) • 527 B
YAML
service: sls-db-migration
frameworkVersion: '2'
provider:
name: aws
runtime: nodejs14.x
lambdaHashingVersion: 20201221
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:GetObject"
Resource: "arn:aws:s3:::<your-s3-bucket-hosting-migration-files>"
functions:
dbmigration:
handler: migration/handler.serverlessMigrationHandler
memorySize: 256
vpc:
securityGroupIds:
- < security group ids >
subnetIds:
- < subnet id(s) from which the DB can be accessedd>