cdk-constructs
v0.0.6
Published
CDK constructs to enable creation of AWS resources for projects.
Downloads
8
Readme
CDK Constructs
CDK constructs to enable creation of AWS resources for projects.
Install
npm i -D cdk-constructs
Usage
To create constructs:
import { App, Tag, Stack, Secret } from '@aws-cdk/cdk';
import { StaticWebsite, GithubNodePipeline } from '@mechanicalrock/cdk-constructs';
const app = new App();
app.apply(new Tag('owner', 'me'));
app.apply(new Tag('project', 'my-project'));
const stack = new Stack(app, 'myAppStack');
new StaticWebsite(stack, 'MyStaticSite', {
domainName = 'example.com',
siteSubDomain: 'sub'
});
new GithubNodePipeline(stack, 'MyPipeline', {
githubOwner: 'Me',
repoName: 'MyRepo',
ssmGithubAccessToken: new Secret('my special secret', 'SpecialSecret'),
codeBuildRolePolicy: 'MyPolicy'
});
app.run();
License
Apache-2.0