Home

Awesome

☁️ Cfnctl

<p align="center"> <a href="https://goreportcard.com/report/github.com/rogerwelin/cfnctl"><img src="https://goreportcard.com/badge/github.com/rogerwelin/cfnctl?style=for-the-badge&logo=go" alt="Go Report Card"></a> <a href="https://github.com/rogerwelin/cfnctl/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/rogerwelin/cfnctl/ci.yml?branch=master&style=for-the-badge&logo=github" alt="Build status"></a> <a href="https://github.com/rogerwelin/cfnctl/blob/master/go.mod"><img src="https://img.shields.io/github/go-mod/go-version/rogerwelin/cfnctl?style=for-the-badge&logo=go" alt="Go version"></a> <a href="https://github.com/rogerwelin/cfnctl/releases"><img src="https://img.shields.io/github/v/release/rogerwelin/cfnctl?style=for-the-badge&logo=github&color=orange" alt="Current Release"></a> <a href="https://github.com/rogerwelin/cfnctl/blob/master/LICENSE"><img src="https://img.shields.io/badge/LICENSE-AL2-orange?style=for-the-badge" alt="License"></a> </p>

[[ pronounced cfn control or cloudformation control ]]

Are you a fan of Terraform but forced to use Cloudformation due to organizational or technical reasons? Introducing cfnctl, a CLI that brings the Terraform cli experience to Cloudformation. You'll never need to use the AWS Console for managing stacks again!

With cfnctl, you write Cloudformation templates as usual but use the cli workflow that you are already used to from Terraform, including:

Demo

Cfnctl

Installation

Grab a pre-built binary from the GitHub Releases page for your OS of choice

Usage

If you are a terraform user the cfnctl cli works as you would expect. Running the binary without flags will give you the help output:

✗ ./cfnctl
 NAME:
    cfnctl - ✨ Terraform cli experience for AWS Cloudformation

 COMMANDS:
  apply     Create or update infrastructure
  plan      Show changes required by the current configuration
  destroy   Destroy previously-created infrastructure
  output    Show all exported output values of the selected account and region
  validate  Check whether the configuration is valid
  version   Show the current Cfnctl version
  help, h   Shows a list of commands or help for one command

 GLOBAL OPTIONS:
  --help, -h  show help (default: false)

 Examples
  Apply infrastructure using the "apply" command.
    $ cfnctl apply --template-file mycfntmpl.yaml --auto-approve

Notice

Cfnctl is under early development and is missing several features such as:

Feature request and pull requests are welcome. Please see the Contributing doc

If you read this far consider hitting the star ⭐