0.1.0 • Published 3 years ago
adsecure-infra-aws v0.1.0
AWS infra
This package holds AWS formulas to deploy parts of the AdSecure infra in AWS cloud provider.
Prerequisites
Install CDK
npm i -g aws-cdk
Deploy
ACCOUNT=${ACCOUNT:-218277271359}; REGION=${REGION:-us-east-1}; cdk deploy --profile deployment-2182-7727-1359 ${STAGE:-staging}-cognito
Commands
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template
Constructs
You can use high-level components called constructs, preconfigured with “sensible defaults” that you can customize, to quickly build a new application. The CDK provisions your resources using AWS CloudFormation to get all the benefits of managing your infrastructure as code.
There are some vailable at https://docs.aws.amazon.com/solutions/latest/constructs/api-reference.html
You should explore the contents of this project. It demonstrates a CDK app with an instance of a stack (AwsStack
)
which contains an Amazon SQS queue that is subscribed to an Amazon SNS topic.
The cdk.json
file tells the CDK Toolkit how to execute your app.
0.1.0
3 years ago