Skip to content

Commit b794960

Browse files
authored
fix: make the example workable (#23)
1 parent 720968a commit b794960

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/complete-ecs/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ module "vpc" {
1818

1919
cidr = "10.1.0.0/16"
2020

21-
azs = data.aws_availability_zones.available.names
21+
azs = [data.aws_availability_zones.available.names[0], data.aws_availability_zones.available.names[1]]
2222
private_subnets = ["10.1.1.0/24", "10.1.2.0/24"]
2323
public_subnets = ["10.1.11.0/24", "10.1.12.0/24"]
2424

25-
enable_nat_gateway = false # this is faster, but should be "true" for real
25+
enable_nat_gateway = true
2626

2727
tags = {
2828
Environment = local.environment
@@ -86,9 +86,9 @@ module "this" {
8686
asg_name = local.ec2_resources_name
8787
vpc_zone_identifier = module.vpc.private_subnets
8888
health_check_type = "EC2"
89-
min_size = 0
90-
max_size = 1
91-
desired_capacity = 0
89+
min_size = 1
90+
max_size = 2
91+
desired_capacity = 1
9292
wait_for_capacity_timeout = 0
9393

9494
tags = [

0 commit comments

Comments
 (0)