Template

formica template

Load the CloudFormation template from the *.template.(yml|yaml|json) files in the current folder and print it.

Example

 root@07e549506145:/app/docs/examples/s3-bucket# formica template
{
    "Resources": {
        "DeploymentBucket": {
            "Type": "AWS::S3::Bucket"
        },
        "DeploymentBucket2": {
            "Type": "AWS::S3::Bucket"
        }
    }
}

Usage

usage: formica template [-h] [--config-file CONFIG_FILE [CONFIG_FILE ...]]
                        [--vars KEY=Value [KEY=Value ...]] [-y]
                        [--artifacts ARTIFACTS [ARTIFACTS ...]]
                        [--organization-variables]
                        [--organization-region-variables]
                        [--organization-account-variables] [--region REGION]
                        [--profile PROFILE]

Print the current template

options:
  -h, --help            show this help message and exit
  --config-file CONFIG_FILE [CONFIG_FILE ...], -c CONFIG_FILE [CONFIG_FILE ...]
                        Set the config files to use
  --vars KEY=Value [KEY=Value ...]
                        Add one or multiple Jinja2 variables
  -y, --yaml            print output as yaml
  --artifacts ARTIFACTS [ARTIFACTS ...]
                        Add one or more artifacts to push to S3 before
                        deployment
  --organization-variables
                        Add AWSAccounts, AWSSubAccounts, AWSMainAccount and
                        AWSRegions as Jinja variables with an Email, Id and
                        Name field for each account
  --organization-region-variables
                        Add AWSRegions as Jinja variables
  --organization-account-variables
                        Add AWSAccounts, AWSSubAccounts, and AWSMainAccount as
                        Jinja variables with an Email, Id, and Name field for
                        each account
  --region REGION       The AWS region to use
  --profile PROFILE     The AWS profile to use