Giter Club home page Giter Club logo

ecs-terraform's Introduction

ECS stands for EC2 Container Service and is the AWS platform for running Docker containers.

Terraform Module to create an Amazon Web Services (AWS) EC2 Container Service (ECS) cluster.

Usage

  • To plan the deployment before actually creating the infra
cd ECS-Terraform 

terraform plan
  • To create the ECS infra using terraform
terraform apply

Variables

Following is the list of default variables used to launch the ECS Cluster

vpc_id = (vpc_id) 
ami_id = (ami-6944c513)
ami_owners = ([ self ,  amazon ,  aws-marketplace ])
lookup_latest_ami = (false)
root_block_device_type = (gp2)
root_block_device_size = (8)
instance_type = (t2.micro)
key_name = (key_name)
cloud_config_content_type = (text/cloud-config) 
health_check_grace_period = (600)
desired_capacity = (1) 
min_size = (1) 
max_size = (1) 
scale_up_cooldown_seconds = (300)
scale_down_cooldown_seconds = (300) 
high_cpu_evaluation_periods = (2)
high_cpu_period_seconds = (300) 
high_cpu_threshold_percent = (90)
low_cpu_evaluation_periods = (2)
low_cpu_period_seconds = (300)
low_cpu_threshold_percent = (10) 
high_memory_evaluation_periods = (2)
high_memory_period_seconds = (300)
high_memory_threshold_percent = (90) 

Outputs

  • id - The container service cluster ID
  • name - The container service cluster name
  • container_instance_security_group_id - Security group ID of the EC2 container instances
  • container_instance_ecs_for_ec2_service_role_name - Name of IAM role associated with EC2 container instances
  • ecs_service_role_name - Name of IAM role for use with ECS services
  • ecs_service_role_arn - ARN of IAM role for use with ECS services
  • container_instance_ecs_for_ec2_service_role_arn - ARN of IAM role associated with EC2 container instances
  • container_instance_autoscaling_group_name - Name of container instance Autoscaling Group

Bug Reports

Bug reports can be directly sent to authors and/or using github's issues.

Author Information

Utkarsh Sharma [email protected]

Contributing

Everybody is welcome to contribute. Please, see CONTRIBUTING for further information.

ecs-terraform's People

Contributors

utkarsh-devops avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.