Created
July 31, 2020 07:39
-
-
Save oxlb/4486f0d3c563c5dfc08f739cd244d462 to your computer and use it in GitHub Desktop.
Aurora CDK Stack
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
| #!/usr/bin/env node | |
| import 'source-map-support/register'; | |
| import cdk = require('@aws-cdk/core'); | |
| import { Aws, Construct } from '@aws-cdk/core'; | |
| import { AuroraSlsStack } from '../lib/aurora-cdk-stack'; | |
| const deploymentStage = 'aurora-sls-dev'; | |
| const defaultEnv: cdk.Environment = { | |
| account: Aws.ACCOUNT_ID, | |
| region: 'ap-southeast-1', | |
| }; | |
| const app = new cdk.App(); | |
| class AuroraCdkStack extends Construct { | |
| constructor(scope: Construct, id: string, env: cdk.Environment) { | |
| super(scope, id); | |
| new AuroraSlsStack(this, 'AuroraSlsStack', {env}, deploymentStage); | |
| } | |
| } | |
| new AuroraCdkStack(app, deploymentStage, defaultEnv); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment