Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

RobotsAndPencils/terraform-ecs-autoscaling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS ECS Autoscaling Group Terraform module

A terraform module that creates an EC2 Launch Configuration and Autoscaling Group and configures EC2 instances for an ECS cluster with private Docker registry credentials.

Using

Create an ECS cluster first and use the name as the cluster for the cluster_name variable value.

The default AMI is the Amazon ECS-Optimized Amazon Linux AMI for us-east-1.

Look in the variables.tf file for configuration options. Here's a sample config with sensitive details changed to protect the innocent.

module "ecs-autoscaling" {
    source = "[email protected]:RobotsAndPencils/terraform-ecs-autoscaling.git"
    cluster_name = "terraform_testing"
    key_name = "staging"
    instance_type = "t2.micro"
    region = "us-east-1"
    availability_zones = "us-east-1a,us-east-1c,us-east-1d"
    subnet_ids = "subnet-c5493a9e,subnet-eaf89dd2,subnet-52316827"
    security_group_ids="sg-7be8020d,sg-65e80204"
    min_size = "3"
    max_size = "10"
    desired_capacity ="4"
    iam_instance_profile = "AmazonECSContainerInstanceRole"
    registry_url = "https://index.docker.io/v1/"
    registry_email = "your_email@"
    registry_auth = "your_registry_auth_token"
    environment_name = "staging"
}

Contact

Robots & Pencils Logo

Made with ❤️ by Robots & Pencils (@robotsNpencils)

Maintainers

About

A terraform module for creating an AWS autoscaling group for ECS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages