Initial infra structure for a fresh AWS account.
- The AWS account you want to deploy this service on is bootstrapped: https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html
- Docker should be installed on the development machine https://docs.docker.com/get-docker/.
- The
aws
CLI should be installed on the development machine (https://formulae.brew.sh/formula/awscli). - The machine you're running this on should be able to authenticate with AWS. See https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html#getting_started_auth. ATTOW this means setting up a user using AWS Identity Center and running
aws configure sso
aws sso login --profile <aws-profile>
-
Install dependencies
npm i
-
Deploy the stack
DOMAIN=<your-domain> BUDGET_NOTIFICATION_EMAILS=<comma-separated-list-of-emails> npm run deploy -- --profile <aws-profile>
The
DOMAIN
andBUDGET_NOTIFICATION_EMAILS
environment variables are both optional. There presence controls wether the related stack will be deployed or not. -
If the
DOMAIN
environment is set and thus thedomains-stack
is deploying for the first time, you will have to point the DNS of your domain to the Name Servers of the Hosted Zone that is being created by this stack. This so the certificate created by ACM can be verified while deploying.
- TODOs listed here