Skip to content

dfpc-coe/vpc

Repository files navigation

TAK VPC

Create and Manage VPCs with CloudFormation

AWS Deployment

1. Install Tooling Dependencies

From the root directory, install the deploy dependencies

npm install

2. CloudFormation Stack Deployment

Deployment to AWS is handled via AWS Cloudformation. The template can be found in the ./cloudformation directory. The deployment itself is performed by Deploy which was installed in the previous step.

Note

The deploy tool can be run via the following

npx deploy

To install it globally - view the deploy README

Deploy uses your existing AWS credentials. Ensure that your ~/.aws/credentials has an entry like:

[coe]
aws_access_key_id = <redacted>
aws_secret_access_key = <redacted>

Deployment can then be performed via the following:

npx deploy create <stack>

Note

Stacks can be created, deleted, cancelled, etc all via the deploy tool. For further information information about deploy functionality run the following for help.

npx deploy

Further help about a specific command can be obtained via something like:

npx deploy info --help

Deployment overview

The CloudFormation template creates the below depicted AWS resources.

Image Source: dfpc-coe-vpc.drawio

Estimated Cost

The estimated AWS cost for this part stack without data transfer or data processing based usage is:

  • Monthly cost: 73.00 USD
  • Yearly cost: 876.00 USD

Refer to this AWS Pricing Calculator estimate for more details.