cdk-constructs
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i cdk-constructs

Weekly Downloads

0

Version

0.0.6

License

Apache-2.0

Unpacked Size

22.1 kB

Total Files

9

Last publish

Collaborators

  • rick_foxcroft