项目作者: globeandmail

项目描述 :
Terraform module to create an ECS cluster with EC2 nodes
高级语言: HCL
项目地址: git://github.com/globeandmail/aws-ecs-cluster.git
创建时间: 2019-10-09T14:38:16Z
项目社区:https://github.com/globeandmail/aws-ecs-cluster

开源协议:MIT License

下载


aws-ecs-cluster

A modified version of https://github.com/springload/terraform-aws-ecs-cluster

Usage

  1. module "ecs-cluster" {
  2. source = "github.com/globeandmail/aws-ecs-cluster?ref=1.0"
  3. cluster_name = my-ecs-cluster
  4. instance_type = var.instance_type
  5. subnet_ids = var.subnet_ids
  6. security_group_ids = var.security_group_ids
  7. vpc_id = var.vpc_id
  8. }

Inputs

Name Description Type Default Required
cluster_name Name of the ECS cluster string n/a yes
ami Name of the AMI image to use string "amzn2-ami-ecs-hvm-*-x86_64-ebs" no
cpu_unlimited Whether or not enable t2/t3 cpu unlimited (if true, might incur additional charges) string "false" no
ec2_key_name EC2 key name to attach to newly created EC2 instances string "" no
instance_type EC2 instance type string "t3.micro" no
instances_desired Number of EC2 instances desired string "1" no
security_group_ids list of security group IDs list [] no
spot Whether or not use Spot instances. Warning: most likely not suitable for production! string "false" no
subnet_ids list of subnet IDs list [] no
tags AWS tags map {} no
vpc_id VPC id to use string "" no

Outputs

Name Description
ecs_cluster_arn The ARN of this cluster
ecs_cluster_id The ARN of this cluster
ecs_nodes_role_arn The ARN of the ec2 role for the cluster nodes
ecs_nodes_role_id The ID of the ec2 role for the cluster nodes