-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.js
25 lines (22 loc) · 1004 Bytes
/
.projenrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const { awscdk } = require('projen');
const cdkVersion = '2.51.1';
const project = new awscdk.AwsCdkConstructLibrary({
author: 'James Ousby',
cdkVersion: cdkVersion,
defaultReleaseBranch: 'main',
name: 'db-migrate-cdk',
repositoryUrl: 'https://github.com/jousby/db-migrate-cdk.git',
description: 'L3 CDK construct to run golang migrate database migrations',
keywords: ['cdk', 'migrate', 'rds', 'aurora', 'mysql', 'postgres', 'migrations', 'schema', 'evolutions', 'database'],
bundledDeps: [
'@aws-sdk/client-secrets-manager@^3.192.0',
'@types/aws-lambda@^8.10.108',
],
});
// This funky post compile step is to ensure the packaged function
// includes the Dockerfile and package.json used to deploy the lambda
// function as a container image
project.postCompileTask.exec('rm -rf ./lib/db-migrate-function');
project.postCompileTask.exec('cp -r ./src/db-migrate-function ./lib');
project.postCompileTask.exec('rm -rf ./lib/db-migrate-function/node_modules');
project.synth();