Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Project Readme

How to Run the Project

Before running the project, make sure you have AWS CLI configured with your account access key ID and secret so that Terraform can access AWS resources.

Steps:

  1. Build Docker Images:

    • Build the Dockerfiles for both the APP and Batch services.
    • Use the following commands:
      docker build -t flask-app:latest /app-python-code/.
      docker build -t batch-helloworld:latest ./app-infra-code/modules/batch/.
      
    • Building the Docker images with these specific names is crucial for the ECR module to function correctly. It ensures that Terraform can push the startup/initial Docker images to ECR, and subsequent resources like ECS Fargate tasks and Batch jobs can fetch them automatically after terraform apply is done.
  2. Initialize Terraform:

    • Run terraform init in "./app-infra-code/" to initialize the Terraform configuration and modules.
  3. Apply Terraform Changes:

    • Run terraform apply in "./app-infra-code/" to apply the Terraform configuration and create/update AWS resources as defined.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages