0% found this document useful (0 votes)
25 views2 pages

AWS CloudFormation Tools

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

AWS CloudFormation Tools

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

AWS CloudFormation tools

Advanced Concepts & 3rd Party Tools


Former2
Former2 allows you to generate IaC (ex. CloudFormation templates) from existing
resources https://github.com/iann0036/former2

Everything happens in the browser (it’s a client-side web app)

Requires IAM keys with ReadOnlyAccess

The following outputs are currently supported:

CloudFormation templates

Terraform

Troposphere

CDK (Cfn Primitives) – TypeScript, Python, C#, Java

CDK for Terraform – TypeScript

Pulumi – TypeScript

Diagram – an embedded version of draw.io

TaskCat
A tool that automates the testing of CloudFormation templates
https://github.com/aws-quickstart/taskcat

Deploys your template in multiple AWS Regions simultaneously

Generates a report with a pass/fail result for each Region

You provide

AWS Regions and the number of AZs you want to include in the test

Template parameters’ values

cfn-nag
A tool that looks for patterns in CloudFormation templates that may indicate
insecure infrastructure https://github.com/stelligent/cfn_nag

Examples:

IAM rule and Security Group rules that are too permissive (wildcards)

Access logs and Encryption that aren’t enabled

Password literals

CloudFormation cheatsheet
Summarizes the usage of !Ref and !GetAtt with CloudFormation resources
https://theburningmonk.com/cloudformation-ref-and-getatt-cheatsheet/

aws-cfn-template-flip
A tool that converts CloudFormation templates between JSON and YAML formats
https://github.com/awslabs/aws-cfn-template-flip

cfn-diagram
A tool to visualize CloudFormation/SAM/CDK templates as diagrams
https://github.com/mhlabs/cfn-diagram

Generates https://draw.io and HTML diagrams

Select only the resources you want (filter by resource type/name)

Different layouts

Supports JSON and YAML

cfn-format
A tool that reads a CloudFormation template and outputs a cleanly-formatted copy
adhering to CloudFormation standards https://github.com/awslabs/aws-cloudformation-
template-formatter

awesome-cloudformation
Reference list for open-source projects related to CloudFormation:
https://github.com/aws-cloudformation/awesome-cloudformation

Template Validation
You can validate your CloudFormation template to catch syntax and semantic errors,
before CloudFormation creates any resources

CloudFormation Console automatically validates the template after you specify input
parameters

AWS CLI CloudFormation validate-template command

cfn-lint: https://github.com/aws-cloudformation/cfn-lint

Validate CloudFormation templates JSON/YAML against resource specification


(properties and their values)

cfn-guard: https://github.com/aws-cloudformation/cloudformation-guard

Validate CloudFormation templates for compliance to organization policy guidelines

You define your own rules

Example: ensure users always create encrypted S3 buckets

Can be used as part of CI/CD pipeline

You might also like