4.6.1 • Published 2 years ago

@takomo/stacks-commands v4.6.1

Weekly downloads
76
License
MIT
Repository
github
Last release
2 years ago

Takomo

Takomo makes it easy to organize, parameterize and deploy your CloudFormation stacks across multiple regions and accounts. In addition to stacks, you can also manage accounts, organizational units and service control policies that belong to your AWS organization.

Quick Start

Let's see how to create a simple CloudFormation stack using Takomo.

Installation

Install Takomo globally:

npm i -g takomo

Verify installation:

tkm --version

AWS Credentials

You need to have valid AWS credentials configured. Create a profile named takomo-example in your ~/.aws/credentials file:

[takomo-example]
aws_access_key_id=XXXXXXXXXXXXXXXXXXXX
aws_secret_access_key=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

Stack Configuration

Our stack contains a VPC whose CIDR range can be parameterized. First, we need to create a stacks directory that will host all stack configurations. Create the directory and add there a file named vpc.yml with the following contents:

regions: eu-west-1
parameters:
  CidrBlock: 10.0.0.0/24

Stack Template

Next, we need to provide a CloudFormation template for our stack. Create templates directory next to the stacks directory, and add there a file named vpc.yml with the following contents:

Description: My VPC
Parameters:
  CidrBlock:
    Type: String
    Description: VPC CIDR block
Resources:
  VPC:
    Type: AWS::EC2::VPC
    Properties:
      CidrBlock: !Ref CidrBlock

Stack Deployment

Alright, we are ready to deploy our stack. Change to the project root directory and run:

tkm stacks deploy --profile takomo-example

You will be prompted if you want to continue the deployment. You also need to review and approve the changes. If you answer yes to both questions, then the deploy will proceed, and given your AWS credentials had all the needed IAM permissions, it should also succeed.

Clean Up

You can delete the stack with command:

tkm stacks undeploy --profile takomo-example

Next Steps

Take a look at https://takomo.io for more documentation.

4.6.1

2 years ago

4.6.0

2 years ago

4.4.0

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.0.0

3 years ago

4.1.0

3 years ago

4.0.0-alpha.2

3 years ago

3.40.3

3 years ago

4.0.0-alpha.1

3 years ago

4.0.0-alpha.0

3 years ago

3.40.1

3 years ago

3.40.2

3 years ago

3.38.1

3 years ago

3.39.0

3 years ago

3.39.1

3 years ago

3.38.0

3 years ago

3.37.1

3 years ago

3.37.0

3 years ago

3.36.0

3 years ago

3.35.2

3 years ago

3.35.1

3 years ago

3.35.0

3 years ago

3.34.1

3 years ago

3.33.2

3 years ago

3.34.0

3 years ago

3.33.0

3 years ago

3.31.2

3 years ago

3.32.0

3 years ago

3.31.1

3 years ago

3.31.0

3 years ago

3.30.0

3 years ago

3.29.0

3 years ago

3.28.0

3 years ago

3.26.0

3 years ago

3.27.0

3 years ago

3.25.0

3 years ago

3.24.0

3 years ago

3.23.0

4 years ago

3.22.0

4 years ago

3.21.0

4 years ago

3.20.0

4 years ago

3.18.0

4 years ago

3.17.0

4 years ago

3.15.0

4 years ago

3.12.0

4 years ago

3.13.0

4 years ago

3.11.0

4 years ago

3.10.0

4 years ago

3.9.0

4 years ago

3.8.0

4 years ago

3.7.0

4 years ago

3.6.0

4 years ago

3.5.1

4 years ago

3.5.0

4 years ago

3.4.0

4 years ago

3.3.0

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

3.0.0-alpha.5

4 years ago

3.0.0-alpha.4

4 years ago

3.0.0-alpha.2

4 years ago

3.0.0-alpha.1

4 years ago

3.0.0-alpha.0

4 years ago

2.12.1

4 years ago

2.12.0

4 years ago

2.11.1

4 years ago

2.11.0

4 years ago

2.10.1

4 years ago

2.10.0

4 years ago

2.9.0

4 years ago

2.8.0

4 years ago

2.7.4

4 years ago

2.7.3

4 years ago

1.5.1

4 years ago

2.7.2

4 years ago

2.7.1

4 years ago

1.5.0

4 years ago

2.7.0

4 years ago

2.6.1

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

2.6.0

4 years ago

2.5.0

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

2.0.0-alpha.1

5 years ago

2.0.0-alpha.0

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago