Creating quick-create links for stacks - AWS CloudFormation

Creating quick-create links for stacks

Use quick-create links to get stacks up and running quickly from the AWS CloudFormation console. You can specify the template URL, stack name, and template parameters in URL query parameters to prepopulate a single Create Stack Wizard page. This simplifies the process of creating stacks by reducing the number of wizard pages and the amount of user input that's required. It also optimizes template reuse because you can create multiple URLs that specify different values for the same template.

CloudFormation supports the following URL query parameters:


Required. Specifies the URL of the stack template. URL encoding is supported, but it isn't required.


Optional. Specifies the stack name. A stack name can contain only alphanumeric characters (case-sensitive) and hyphens. It must start with an alphabetic character and can't be longer than 128 characters.

Any parameter in the stack template that isn't a NoEcho parameter type

Optional. Use the format param_parameterName to specify template parameters in the URL query string. The URL parameter must include the param_ prefix, and the parameter name segment must exactly match the parameter name in the template. For example: param_DBName.

CloudFormation ignores parameters that don't exist in the template, and any parameters defined with their NoEcho property set to true types (typically, user names and passwords). URL parameters override default values that are specified in the template. You can include as many parameters as needed.


Rather than embedding sensitive information directly in your CloudFormation templates, we recommend you use dynamic parameters in the stack template to reference sensitive information that is stored and managed outside of CloudFormation, such as in the AWS Systems Manager Parameter Store or AWS Secrets Manager.

For more information, see the Do not embed credentials in your templates best practice.

All query parameter names are case sensitive. Users can overwrite these values in the console before creating the stack.

The following example is based on the WordPress basic single instance sample template. The query string includes the required templateURL parameter and the stackName, DBName, InstanceType, and KeyName parameters.

The following URL has line breaks added for clarity. ?templateURL= &stackName=MyWPBlog &param_DBName=mywpblog &param_InstanceType=t2.medium &param_KeyName=MyKeyPair

The following URL includes the same parameters as the previous example, but the line breaks are removed. This is the actual URL format.

The example URL opens the Create Stack Wizard in the console, with the supplied values automatically used for the parameters.

                Parameters in the Create Stack Wizard that are prepopulated with the values
                    from the URL query string.