To help you get going with deploying MarkLogic on Amazon Web Services (AWS), MarkLogic provides prebuilt Amazon Machine Images (AMIs) and ready for deployment CloudFormation Templates. The templates, which build on the AMIs, can be used to provision a MarkLogic Managed Cluster.

CloudFormation Templates

The best (and easiest) way to provision MarkLogic Managed Clusters is via Cloud Formation templates. Managed cluster provides the benefits of high-availability and scalability.

The templates serve both as Getting Started points as well as examples. Once you are comfortable with them, we encourage and expect you to copy and modify them to suit your specific needs. See our GitHub page to download and access the template.

NOTE: Successful launching of EC2 instances via a CloudFormation template requires acceptance of the License Agreement for the underlying AMI. Please visit the corresponding AWS Marketplace AMI page to accept the License Agreement before attempting to launch a stack from any of the templates.

For MarkLogic Server 9.x, the MarkLogic 9 CloudFormation template supports a Classic Load Balancer (CLB).

For MarkLogic Server versions 10.0-6.2 and later, the MarkLogic 10 CloudFormation template supports both a Classic Load Balancer (CLB) and an Application Load Balancer (ALB). The CloudFormation template creates a different type of load balancer depending on the number of zones to which you deploy. The CloudFormation template will create a CLB if you deploy to one zone. The CloudFormation template will create an ALB if you deploy to three zones. If you are using your own CloudFormation template, you can deploy to two or more zones to create an ALB.

NOTE: For MarkLogic versions 10.0-1 through 10.0-6.1, the MarkLogic 10 CloudFormation template supports only CLB.

CLB runs at OSI layers 4 (transport) and 7 (application). ALB runs at OSI layer 7. If the CloudFormation template creates an ALB, you are unable to use an ODBC connection with business intelligence (BI) tools. To use an ODBC connection with BI tools, you can create a separate Network Load Balancer for ODBC connections.

For more information on how to deploy MarkLogic on EC2, please refer to the product documentation.

MarkLogic CloudFormation templates
Description Template URL Launch in US East Region
MarkLogic 11 Cluster in New VPC  mlcluster-vpc.template
Launch Stack
MarkLogic 11 Cluster in existing VPC  mlcluster.template
Launch Stack
MarkLogic 10 Cluster in New VPC  mlcluster-vpc.template
Launch Stack
MarkLogic 10 Cluster in existing VPC  mlcluster.template
Launch Stack
MarkLogic 9 Cluster in New VPC mlcluster-vpc.template
Launch Stack
MarkLogic 9 Cluster in existing VPC mlcluster.template
Launch Stack
If you choose to launch the MarkLogic AMIs outside of the Cloud Formation templates, you will not have automatic access to the Managed Cluster features. (You can still gain access to those features via your own custom configuration and automation and the documented series of environment variables and the mlcmd utility.)

For these reasons, we highly recommend starting with the CloudFormation templates, even if you plan to start with a single-node cluster.

MarkLogic AMIs

MarkLogic provides two AMI series, Developer and Essential Enterprise.

The Developer AMI is suited for a variety of purposes, from development to proof-of-concept work. Production use (or any use allowed by the terms of your license) of this AMI may also be supported if you bring your own license (BYOL). After you start up this AMI, you must request and install a free developer license key OR install your own pre-paid license key.

The Essential Enterprise AMI is available for purchase by the hour and comes with a pre-packaged MarkLogic Essential Enterprise license key.

Custom AMIs can also be created using the MarkLogic installers, if preferred or necessary for your requirements. Note that provisioning the MarkLogic AMI by themselves does not automatically provide Managed Cluster features.

MarkLogic 11, 10 and MarkLogic 9 AMIs

Here are the AWS Marketplace pages for the MarkLogic 11, 10 and 9 AMIs:

MarkLogic 11 AMIs MarkLogic 10 AMIs MarkLogic 9 AMIs
Single-instance Developer (Free, BYOL) Single-instance Developer (Free, BYOL) Single-instance Developer (Free, BYOL)
Single-instance Essential Enterprise (Pay per hour) Single-instance Essential Enterprise (Pay per hour) Single-instance Essential Enterprise (Pay per hour)

Launching an AMI with EC2 Console

To gain the benefits of high-availability and scalability, the best practice is to provision is via CloudFormation templates and run MarkLogic as a cluster (see above). However, if you prefer to launch an AMI directly, here are the steps:

  1. Create yourself an Amazon account and sign up for Amazon Web Services. (You may need to provide personal details, verification, credit card information and the like).
  2. Browse to the AWS Marketplace, search for marklogic, choose an AMI (or choose one of the Marketplace links from this page), select a region, and accept the terms.
  3. Launch the AMI with the EC2 Console:
    • Choose a supported instance type (NB: MarkLogic AMIs will not run on micro instances).
    • The AMI is configured to store MarkLogic configuration and data on an attached EBS storage. When you launch this AMI via the EC2 Console, the storage will be pre-configured and it must remain on /dev/sdf device. You can change the default volume size during setup. Leave off the Delete-on-termination checkbox, to enable you to keep your data.
    • Use a Security Group that will open ports 7997-8100. (If you don’t have such a group, you can create one directly in the EC2 Console UI).
    • Proceed to start your instance.
  4. When your instance is started, you can browse to the Admin UI on your host’s port 8001. Log in with user “admin”; the password is set to the value of the instance ID.


Community-based support is available by asking questions on Stack Overflow. Beyond that, please also see the Developer Support Program we offer.


You can access our CloudFormation templates at our AWS GitHub page. Please feel free to download and modify the template as per your needs.

MarkLogic on aws repository ›


Any distribution or sale of custom AMIs with MarkLogic installed is subject to MarkLogic License Agreement terms.

If you are using Cloud Formation Templates published prior to MarkLogic 9.0-5 Release, you cannot upgrade automatically to 9.0-5 Cloud Formation Templates with VPC Support.

* Please refer to this knowledge base article if you want to upgrade to 1-click compatible MarkLogic AMI from a previously released MarkLogic AMI without pre-configured data volume (device on /dev/sdf).

Learn More

MarkLogic Server on AWS Guide

Get an overview of MarkLogic Server on AWS in this documentation guide.

EC2 Upgrade procedure to 1-click AMIs

This article details changes to the upgrade procedures for MarkLogic 9 AMIs.

MarkLogic CloudFormation Template on AWS

Explore the GitHub Repository for MarkLogic CloudFormation templates.

This website uses cookies.

By continuing to use this website you are giving consent to cookies being used in accordance with the MarkLogic Privacy Statement.