0.1.0 • Published 3 years ago

adsecure-infra-aws v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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 js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk 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.