Skip to content

This repository contains Terraform scripts to deploy Dagster on AWS ECS.

Notifications You must be signed in to change notification settings

ricardo8aib/dagster-ecs-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infrastructure Management with Terraform and Docker

This project uses Terraform for infrastructure management and Docker for building and deploying containerized applications. The following instructions outline the key commands to manage the infrastructure.

Prerequisites

Before running the commands, ensure you have the following installed:

Make sure to configure your AWS CLI with the appropriate credentials:

aws configure

Customization

You can customize the AWS account ID, region, and repository names in the Makefile:

  • AWS_ACCOUNT_ID: Your AWS account number.
  • AWS_REGION: The AWS region where your resources are deployed.
  • CODE_LOCATION_REPO_NAME, WEBSERVER_REPO_NAME, DAEMON_REPO_NAME: Names of your Docker repositories.

Key Commands

1. Initialize Terraform

To initialize the Terraform working directory, run:

make terraform_init

2. Apply Terraform Configuration

To apply the Terraform configurations for all modules (excluding ECS), run:

make terraform_apply

3. Build and Push Docker Images

To build and push the Docker images to AWS ECR, run:

make build_and_push

4. Add code locations code to S3 bucket

Copy the dagster-code-location folder in the recently created S3 bucket. This will trigger a DataSync task and will sync the files with the EFS.

5. Deploy ECS Services

To deploy the ECS services using Terraform, run:

make deploy_services

6. Explore the Dagster UI

To start using Dagster, navigate to the created ALB and locate the DNS. Copy the DNS into your browser to explore the Dagster UI.

make deploy_services

7. Destroy All Infrastructure

To destroy all resources managed by Terraform, run:

make terraform_destroy

About

This repository contains Terraform scripts to deploy Dagster on AWS ECS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published