OS Manuals

/usr/bin/cfn-init

CloudFormation helper scripts

From aws-cfn-bootstrap 2.0.42-r0 (enterprise-packages), captured 2026-11-08 by running cfn-init --help (exit 0). permalink

Usage: cfn-init [options]
  or:  cfn-init [options] <filename>
  or:  cat <filename> | cfn-init [options] -

Options:
  -h, --help            show this help message and exit
  -s STACK_NAME, --stack=STACK_NAME
                        A CloudFormation stack
  -r LOGICAL_RESOURCE_ID, --resource=LOGICAL_RESOURCE_ID
                        A CloudFormation logical resource ID
  -c CONFIGSETS, --configsets=CONFIGSETS
                        An optional list of configSets (default: "default")
  -u ENDPOINT, --url=ENDPOINT
                        The CloudFormation service URL. The endpoint URL must match the region
                        option. Use of this parameter is discouraged.
  --region=REGION       The CloudFormation region. Default: us-east-1.
  -v, --verbose         Enables verbose logging
  -t, --strict          ==SUPPRESS==

  AWS Credentials:
    Options for specifying AWS Account Credentials.

    -f CREDENTIAL_FILE, --credential-file=CREDENTIAL_FILE
                        A credential file, readable only by the owner, with keys 'AWSAccessKeyId'
                        and 'AWSSecretKey'
    --role=IAM_ROLE     An IAM Role
    --access-key=ACCESS_KEY
                        An AWS Access Key
    --secret-key=SECRET_KEY
                        An AWS Secret Key

  Proxy:
    Options for specifying proxies. Format: [scheme://][user:password@]host:port

    --http-proxy=HTTP_PROXY
                        A (non-SSL) HTTP proxy
    --https-proxy=HTTPS_PROXY
                        An HTTPS proxy
Options (14)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
-s, --stack STACK_NAMEA CloudFormation stackhelp
-r, --resource LOGICAL_RESOURCE_IDA CloudFormation logical resource IDhelp
-c, --configsets CONFIGSETSAn optional list of configSets (default: "default")help
-u, --url ENDPOINTThe CloudFormation service URL.help
--region REGIONThe CloudFormation region.help
-v, --verboseEnables verbose logginghelp
-t, --strict==SUPPRESS==help
-f, --credential-file CREDENTIAL_FILEA credential file, readable only by the owner, with keys 'AWSAccessKeyId' and 'AWSSecretKey'help
--role IAM_ROLEAn IAM Rolehelp
--access-key ACCESS_KEYAn AWS Access Keyhelp
--secret-key SECRET_KEYAn AWS Secret Keyhelp
--http-proxy HTTP_PROXYA (non-SSL) HTTP proxyhelp
--https-proxy HTTPS_PROXYAn HTTPS proxyhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.