0.0.1 • Published 3 years ago

@autoguru/cdk v0.0.1

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

CDK

AutoGuru's CDK library of constructs.

Development Environment (Linux - optional)

  • WSL2 (Debian)
  • Install curl - sudo apt install curl
  • Install volta - curl https://get.volta.sh | bash

Development Environment (Windows)

  • yarn - will use volta to install required tooling, etc

AWS Credentials

C:\Users\<your windows user>\.aws\credentials

Add this to the credentials file.

[aws-well-architected]
aws_access_key_id=<your access key from autoguru-identity account>
aws_secret_access_key=<your secret access key>

or execute:

aws configure --profile aws-well-architected

and complete the values

Region: ap-southeast-2

Output: json

Formatting Code

yarn format

Bootstrap Account for CDK per version of the CDK

yarn cdk bootstrap --profile development \
    aws://635532940647/ap-southeast-2

Publishing

$ npm login --scope=@autoguru-au --registry=https://npm.pkg.github.com

When prompted for a password, please create an Personal Access Token, with package write access.

Deploying Stacks

WSL2/Linux

TODO

Windows

yarn cdk deploy --profile <profile for account> -j --app "yarn ts-node <stack file>"

Example:

yarn cdk deploy --profile development -j --app "yarn ts-node order-request.ts"