ıllıllı ᖴᒪᑌEᑎT.ᗩᗯᔕ.ᑕᗪK ıllıllı
A fluent style interface for AWS-CDK. This is a personal project, not affiliated with Amazon or AWS, and should not be used in production. YMMV
Installation
via NPM
npm install --save fluent.aws-cdk
or via yarn
yarn install --save fluent.aws-cdk
Example usage
App Definition (index.ts)
;;; const app = ;app 'lab' // Defines a CI/CD pipeline ;app;
Construct Definition
;;;; cidr: string; includePublicSubnet: boolean = true; includePrivate: boolean = true; includeIsolated: boolean = true; { superparent name props as IFluentStackProps constructStore; let subnetConfiguration: ec2SubnetConfiguration = ; if propsincludePublicSubnet || propsincludePrivate || propsincludeIsolated if propsincludePublicSubnet subnetConfiguration if propsincludePrivate subnetConfiguration if propsincludeIsolated subnetConfiguration const newVpc: ec2.VpcNetwork = this 'vpc' natGateways: 1 natGatewayPlacement: subnetsToUse: SubnetTypePublic cidr: propscidr enableDnsHostnames: true enableDnsSupport: true subnetConfiguration: subnetConfiguration ; thisConstructStoreSharedResourcesname = newVpc; }
Useful commands
npm run build
compile typescript to jsnpm run watch
watch for changes and compile