Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

CDK constructs to enable creation of AWS resources for projects.

License

Notifications You must be signed in to change notification settings

MechanicalRock/cdk-constructs

Repository files navigation

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

About

CDK constructs to enable creation of AWS resources for projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published