Skip to content

Commit 570df90

Browse files
authored
0.12: Fix and upgrade outputs (#40)
* fix: upgrade outputs to be fully 0.12 compatible * chore: upgrade dockerized tf
1 parent 8a28578 commit 570df90

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

bin/terraform

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ exec docker run \
1313
--volume "$(cd .. && pwd)":/tmp/workspace/fargate-module \
1414
--env AWS_PROFILE="${AWS_PROFILE}" \
1515
--env AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION}" \
16-
hashicorp/terraform:0.12.6 "${@}"
16+
hashicorp/terraform:0.12.8 "${@}"

outputs.tf

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,107 +4,107 @@
44

55
output "vpc_id" {
66
description = "The ID of the VPC"
7-
value = "${module.vpc.vpc_id}"
7+
value = module.vpc.vpc_id
88
}
99

1010
output "vpc_cidr_block" {
1111
description = "The CIDR block of the VPC"
12-
value = "${module.vpc.vpc_cidr_block}"
12+
value = module.vpc.vpc_cidr_block
1313
}
1414

1515
output "public_subnets" {
1616
description = "List of IDs of public subnets"
17-
value = "${module.vpc.public_subnets}"
17+
value = module.vpc.public_subnets
1818
}
1919

2020
output "public_subnets_cidr_blocks" {
2121
description = "List of cidr_blocks of public subnets"
22-
value = "${module.vpc.public_subnets_cidr_blocks}"
22+
value = module.vpc.public_subnets_cidr_blocks
2323
}
2424

2525
output "private_subnets" {
2626
description = "List of IDs of private subnets"
27-
value = "${module.vpc.private_subnets}"
27+
value = module.vpc.private_subnets
2828
}
2929

3030
output "private_subnets_cidr_blocks" {
3131
description = "List of cidr_blocks of private subnets"
32-
value = "${module.vpc.private_subnets_cidr_blocks}"
32+
value = module.vpc.private_subnets_cidr_blocks
3333
}
3434

3535
# ECR
3636

3737
output "ecr_repository_arns" {
3838
description = "List of ARNs of ECR repositories"
39-
value = ["${aws_ecr_repository.this.*.arn}"]
39+
value = aws_ecr_repository.this.*.arn
4040
}
4141

4242
output "ecr_repository_urls" {
4343
description = "List of URLs of ECR repositories"
44-
value = ["${aws_ecr_repository.this.*.repository_url}"]
44+
value = aws_ecr_repository.this.*.repository_url
4545
}
4646

4747
# ECS CLUSTER
4848

4949
output "ecs_cluster_arn" {
5050
description = "ARN of the ECS Cluster"
51-
value = "${aws_ecs_cluster.this.arn}"
51+
value = aws_ecs_cluster.this.arn
5252
}
5353

5454
# ALB
5555

5656
output "application_load_balancers_arns" {
5757
description = "List of ARNs of Application Load Balancers"
58-
value = ["${aws_lb.this.*.arn}"]
58+
value = aws_lb.this.*.arn
5959
}
6060

6161
output "application_load_balancers_zone_ids" {
6262
description = "List of Zone IDs of Application Load Balancers"
63-
value = ["${aws_lb.this.*.zone_id}"]
63+
value = aws_lb.this.*.zone_id
6464
}
6565

6666
output "application_load_balancers_dns_names" {
6767
description = "List of DNS Names of Application Load Balancers"
68-
value = ["${aws_lb.this.*.dns_name}"]
68+
value = aws_lb.this.*.dns_name
6969
}
7070

7171
# SECURITY GROUPS
7272

7373
output "web_security_group_arn" {
7474
description = "ARN of Web-facing Security Rule"
75-
value = "${aws_security_group.web.arn}"
75+
value = aws_security_group.web.arn
7676
}
7777

7878
output "web_security_group_ingress" {
7979
description = "Ingress Rule of Web-facing Security Rule"
80-
value = "${aws_security_group.web.ingress}"
80+
value = aws_security_group.web.ingress
8181
}
8282

8383
output "services_security_groups_arns" {
8484
description = "List of ARNs of Services' Security Groups"
85-
value = ["${aws_security_group.services.*.arn}"]
85+
value = aws_security_group.services.*.arn
8686
}
8787

8888
output "services_security_groups_ingress_rules" {
8989
description = "List of Ingress Rules of Services' Security Groups"
90-
value = ["${aws_security_group.services.*.ingress}"]
90+
value = aws_security_group.services.*.ingress
9191
}
9292

9393
# CLOUDWATCH LOG GROUPS
9494

9595
output "cloudwatch_log_group_names" {
9696
description = "List of Names of Cloudwatch Log Groups"
97-
value = ["${aws_cloudwatch_log_group.this.*.name}"]
97+
value = aws_cloudwatch_log_group.this.*.name
9898
}
9999

100100
output "cloudwatch_log_group_retention_days" {
101101
description = "List of Retention in Days configuration of Cloudwatch Log Groups"
102-
value = ["${aws_cloudwatch_log_group.this.*.retention_in_days}"]
102+
value = aws_cloudwatch_log_group.this.*.retention_in_days
103103
}
104104

105105
# CODEPIPELINE SNS EVENTS
106106

107107
output "codepipeline_events_sns_arn" {
108108
description = "ARN of CodePipeline's SNS Topic"
109-
value = "${var.codepipeline_events_enabled ? join(",", aws_sns_topic.codepipeline_events.*.arn) : "not set"}"
109+
value = var.codepipeline_events_enabled ? join(",", aws_sns_topic.codepipeline_events.*.arn) : "not set"
110110
}

0 commit comments

Comments
 (0)