Package Exports
- cdk-constructs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cdk-constructs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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