Install Atlas on ECS
This is an install guide to set up a simple ECS cluster with a service running Atlas on AWS.
Pre-requisites
In order to set up Atlas quickly:
Install Pulumi (version 3.53.1+). Make sure that Pulumi is authorized to access AWS.
Create a Pulumi Organization if you don't already have one.
Install npm
Clone this repository.
Configuration
Credentials
Atlas needs credentials to access various private data sources. These secrets are not stored by Atlas and can be provided in various ways. Save off a copy of the following under the name pulumi.config.yml
:
Modify this file to set the tokens.
By default, we install the Atlas cluster in us-west-2
, but you can update this to your preferred region.
The keys should match the variables configured in the Atlas configuration.
Organization Domain
Next, modify the organization
field in the Atlas configuration with your organizational domain (ex: moment.dev). This domain must match the domain registered with Moment.
Install Dependencies
Preview
From the atlas-install/ecs/pulumi
directory, run pulumi preview to ensure the plan looks correct:
Apply
Once it is confirmed that the plan looks as expected, run:
Verifying that Atlas is installed from Moment
Once Atlas is installed and you've verified that the ECS service is healthy from the AWS console, check that it's working with Moment by adding a code cell
with the following code:
Last updated