This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from itzhapaz/develop/cdk-constructs
Develop/cdk constructs
- Loading branch information
Showing
33 changed files
with
1,942 additions
and
1,256 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
#!/usr/bin/env node | ||
import 'source-map-support/register'; | ||
import * as cdk from '@aws-cdk/core'; | ||
import { AwsGenomicsCdkStack } from '../lib/aws-genomics-cdk-stack'; | ||
import "source-map-support/register"; | ||
import * as cdk from "@aws-cdk/core"; | ||
import { AwsGenomicsCdkStack } from "../lib/aws-genomics-cdk-stack"; | ||
import * as config from "../app.config.json"; | ||
|
||
const env = { | ||
account: process.env.CDK_DEFAULT_ACCOUNT ?? config.accountID, | ||
region: process.env.CDK_DEFAULT_REGION ?? config.region | ||
} | ||
account: process.env.CDK_DEFAULT_ACCOUNT ?? config.accountID, | ||
region: process.env.CDK_DEFAULT_REGION ?? config.region, | ||
}; | ||
|
||
const app = new cdk.App(); | ||
new AwsGenomicsCdkStack(app, 'AwsGenomicsCdkStack', {env: env}); | ||
const genomicsStack = new AwsGenomicsCdkStack( | ||
app, | ||
`${config.projectName}CdkStack`, | ||
{ | ||
env: env, | ||
} | ||
); | ||
|
||
for (let i = 0; i < config.tags.length; i++) { | ||
cdk.Tags.of(genomicsStack).add(config.tags[i].name, config.tags[i].value); | ||
} |
Oops, something went wrong.