-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.tf
29 lines (25 loc) · 858 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Example ECS service terraform config file.
# See README.md for details on how to fill in all the commented out values.
module "service" {
source = "../../templates/basic-app"
desired_count = "4"
vpc_name = "ecs-example-vpc"
region = "us-east-1"
#target_group_arn = "arn:aws:elasticloadbalancing:us-east-1:CHANGEME"
cluster = "ecs-example-vpc-cluster-a"
docker_image = "${var.docker_image}"
app_name = "basic-app"
}
provider "aws" {
region = "us-east-1"
}
// Note: as a best practice, we recommend using dynamodb for state locking but
// for simplicity we skip that here.
terraform {
backend "s3" {
#bucket = "CHANGEME"
key = "ecs-example-vpc/terraform/basic-app/terraform.tfstate"
region = "us-east-1"
}
required_version = "~> 0.11.7"
}