Creating a CloudFormation Stack using the AWS Command-Line Interface
- Last Updated: April 14, 2026
- 1 minute read
- MarkLogic Server
- Version 10.0
- Documentation
In addition to using the AWS CloudFormation console, you can use the AWS CloudFormation command line interface (CLI) to create a CloudFormation stack. The AWS CloudFormation CLI is described in AWS Command Line Interface.
Note:
The AWS command line tools do not work with spaces for CloudFormation parameter values. Any parameter values containing a space will result in an error.
The list of CLI commands are documented in Create, update, and delete CloudFormation stacks with the AWS CLI and PowerShell.
The following is a summary on how to create a stack using the AWS CloudFormation CLI:
-
Install and configure AWS CloudFormation CLI environment for your system, as described in Install or update to the latest version of the AWS CLI.
-
Call the
cfn-create-stack function()with similar parameters as shown in Creating a CloudFormation Stack Using the AWS Console. In addition, you must include the parameter:--capabilities "CAPABILITY_IAM", as described in AWS CloudFormation Sample Templates - AWS GovCloud (US) region. -
The
cfn-create-stackfunction runs asynchronously, so it will return an id for the stack before the stack is created. You can use thecfn-describe-stack-eventscommand with the stack id to check the status of your stack. -
Once the stack is created, you can use the
fn-describe-stacksfunction to obtain the URL to the MarkLogic Admin Interface.