0.0.6 • Published 6 years ago

cdk-constructs v0.0.6

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
6 years ago

CircleCI npm version Coverage Status

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