cfn

command module
v0.0.0-...-62fbec6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

README

cfn

A simple command-line tool to tail human-readable AWS CloudFormation events suitable for observing stack creation and updates in real-time. This may be useful when developing and testing CloudFormation templates, or when monitoring infrastructure deployments.

Install

go get github.com/rpgreen/cfn

(Optional) Configure aws cli

aws configure

Use

Usage: cfn [-c command] [-s stackname] [-r region] [-p profile]
  -c string
    	Command to use (i.e. 'tail') (default "tail")
  -p string
    	AWS SDK profile name to use (optional)
  -r string
    	AWS region to use (optional)
  -s string
    	Stack to use (optional)
  -o string
        Output format to use (text or table) (default "text")

Examples

Tail events from the most recently updated stack using default AWS credentials and region
$ ./cfn
Tail events using specified stack and region, and using specified AWS credentials profile
$ ./cfn -s mystack -p myprofile -r us-east-1
Tail events after creating/updating a stack
$ aws cloudformation create-stack --stack-name mystack --template-body file://mytemplate.yml && cfn -s mystack

By default, cfn will look for credentials using the default credential provider chain used by the AWS CLI. Similarly, the default region is based on the AWS CLI configuration.

To provide a custom credential profile, use the -p option. To override the default region, use the -r option.

If no stack is specified with -s option, cfn will attempt to find the most recently updated stack.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL