Skip to content

admssa/exness-test-case

Repository files navigation

ECS service creation script

This script:
  • creates a public VPC
  • creates an ECS cluster
  • creates autoscaling group and launch configuration for cluster instances
  • creates roles and security groups
  • creates a repository in AWS ECR,
  • builds the docker image, pushes it to the repository, using the packer
  • creates an AWS ECS service on a given cluster
  • creates AWS ELB for this service
  • checks the availability of the service
Dependencies:
  • docker
  • packer
  • terraform
  • awscli
How-to:
  1. Export credentials:
export AWS_ACCESS_KEY_ID="..."
export AWS_SECRET_ACCESS_KEY="..."
  1. Change variables and backend files or create your own:
  • ./backends/backend-dev.json
  • ./vars/dev.tfvars
  1. Change backend s3 bucket in:
  • main.tf
  1. run (using existing dev config example):
make init-dev
make plan-dev
make apply-dev
  1. Destroy all things, you created:
make destroy-dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published