Skip to content

Instantly share code, notes, and snippets.

@skahack
Created June 19, 2016 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skahack/37c6e14ee1613f1211ee479d28c764e4 to your computer and use it in GitHub Desktop.
Save skahack/37c6e14ee1613f1211ee479d28c764e4 to your computer and use it in GitHub Desktop.
module "stack" {
source = "github.com/SKAhack/stack"
name = "sugoi-project"
environment = "prod"
key_name = "key-pair-ap-northeast-1"
region = "ap-northeast-1"
availability_zones = "ap-northeast-1a,ap-northeast-1c"
ecs_instance_type = "t2.micro"
internal_subnets = "10.30.0.0/19,10.30.64.0/19"
ecs_ami = "ami-095dbf68"
ecs_min_size = 2
ecs_desired_capacity = 2
}
module "beacon" {
source = "github.com/SKAhack/stack//service"
name = "beacon"
image = "segment/pingdummy-beacon"
port = 3001
container_port = 3001
dns_name = "beacon"
environment = "${module.stack.environment}"
cluster = "${module.stack.cluster}"
zone_id = "${module.stack.zone_id}"
iam_role = "${module.stack.iam_role}"
security_groups = "${module.stack.internal_elb}"
subnet_ids = "${module.stack.internal_subnets}"
log_bucket = "${module.stack.log_bucket_id}"
memory = 100
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment