Skip to main content

Create AWS CloudFormation yml for any resource

Project description

CloudFormation supports lots of different AWS Resources with many parameters. Remembering all of them is a pain and slows down development dramatically.

To make this faster Former lets you create a full CF resource example for any supported Resource. It parses the CloudFormation Resource Specification to get the definition for all resources.


You can create an example for any aws resource by calling former with the service and resource name. In the following example we’re creating an AWS::IAM::User Resource:

root@e41871e1eb3e:/app# former iam user
      - String
        Password: String - Required
        PasswordResetRequired: Boolean
      - String
      Path: String
      - PolicyDocument: Json - Required
        PolicyName: String - Required
      UserName: String
    Type: AWS::IAM::User

Some Resources also have a subtype (e.g. LoginProfile for the IAM::User). If you only want to show the subtype you can add it as a third parameter:

root@e41871e1eb3e:/app# former iam user loginprofile
      Password: String - Required
      PasswordResetRequired: Boolean
    Type: AWS::IAM::User.LoginProfile

Of course this is not valid CloudFormation as the LoginProfile is not a valid CF Resource. But it helps when you want to get a quick overview for a subtype.


  • --json Print output in json instead of yaml

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
former-0.2.2-py2.py3-none-any.whl (6.5 kB) Copy SHA256 hash SHA256 Wheel py2.py3
former-0.2.2.tar.gz (4.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page