You can create custom CloudFormation advanced templates for DC/OS. You can then deploy and run DC/OS from your own private S3 bucket.
The custom templates are created from the DC/OS advanced installer.
- A node that meets custom installer bootstrap node system requirements.
- Advanced template system requirements.
- An Amazon S3 bucket with read-write access.
- The S3 bucket must have a bucket policy that allows the launched AWS instances to download the files from the s3 bucket. Here is a sample policy that allows anyone to download:
For more information about s3 bucket polices, see the AWS Documentation.
- Contact your sales representative or firstname.lastname@example.org to obtain the Enterprise DC/OS installer and license.
- Download the setup file to your bootstrap node.
Create a directory named
genconf in the home directory of your node and navigate to it.
$ mkdir -p genconf
- Create a configuration file in the
genconf directory and save as
config.yaml. This configuration file specifies your AWS credentials and the S3 location to store the generated artifacts. These are the required parameters:
For parameters descriptions and configuration examples, see the documentation.
Run the DC/OS installer script with the AWS argument specified. This command creates and uploads a custom build of the DC/OS artifacts and templates to the specified S3 bucket.
$ sudo bash dcos_generate_config.sh --aws-cloudformation
The root URL for this bucket location is printed at the end of this step. You should see a message like this:
AWS CloudFormation templates now available at: https://<amazon-web-endpoint>/<path-to-directory>
- Go to S3 and navigate to your S3 bucket shown above in
- Select cloudformation and then select the zen template for the number of desired masters. For example, select el7-zen-1.json for a single master configuration.
- Right-click and select Properties, and then copy the Amazon S3 template URL.
- Go to CloudFormation and click Create Stack.
- On the Select Template page, specify the Amazon S3 template URL path to your Zen template. For example:
- Complete your installation by following these instructions.
For the complete advanced configuration options, see the template reference documentation.