forked from strvcom/terraform-aws-fargate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
122 lines (93 loc) · 3.16 KB
/
outputs.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Outputs file
# VPC
output "vpc_id" {
description = "The ID of the VPC"
value = module.vpc.vpc_id
}
output "vpc_cidr_block" {
description = "The CIDR block of the VPC"
value = module.vpc.vpc_cidr_block
}
output "public_subnets" {
description = "List of IDs of public subnets"
value = module.vpc.public_subnets
}
output "public_subnets_cidr_blocks" {
description = "List of cidr_blocks of public subnets"
value = module.vpc.public_subnets_cidr_blocks
}
output "private_subnets" {
description = "List of IDs of private subnets"
value = module.vpc.private_subnets
}
output "private_subnets_cidr_blocks" {
description = "List of cidr_blocks of private subnets"
value = module.vpc.private_subnets_cidr_blocks
}
# ECR
output "ecr_repository_arns" {
description = "List of ARNs of ECR repositories"
value = aws_ecr_repository.this.*.arn
}
output "ecr_repository_urls" {
description = "List of URLs of ECR repositories"
value = aws_ecr_repository.this.*.repository_url
}
# ECS CLUSTER
output "ecs_cluster_arn" {
description = "ARN of the ECS Cluster"
value = aws_ecs_cluster.this.arn
}
# ALB
output "application_load_balancers_arns" {
description = "List of ARNs of Application Load Balancers"
value = aws_lb.this.*.arn
}
output "application_load_balancers_zone_ids" {
description = "List of Zone IDs of Application Load Balancers"
value = aws_lb.this.*.zone_id
}
output "application_load_balancers_dns_names" {
description = "List of DNS Names of Application Load Balancers"
value = aws_lb.this.*.dns_name
}
output "application_load_balancers_listeners_arns" {
description = "List of ARNs of Application Load Balancer Listeners"
value = aws_lb_listener.this.*.arn
}
# TARGET GROUPS
output "target_groups_arns" {
description = "List of ARNs of Target Groups"
value = aws_lb_target_group.this.*.arn
}
# SECURITY GROUPS
output "web_security_group_arn" {
description = "ARN of Web-facing Security Rule"
value = var.alb_create ? aws_security_group.web[0].arn : ""
}
output "web_security_group_ingress" {
description = "Ingress Rule of Web-facing Security Rule"
value = var.alb_create ? aws_security_group.web[0].ingress : {}
}
output "services_security_groups_arns" {
description = "List of ARNs of Services' Security Groups"
value = aws_security_group.services.*.arn
}
output "services_security_groups_ingress_rules" {
description = "List of Ingress Rules of Services' Security Groups"
value = aws_security_group.services.*.ingress
}
# CLOUDWATCH LOG GROUPS
output "cloudwatch_log_group_names" {
description = "List of Names of Cloudwatch Log Groups"
value = aws_cloudwatch_log_group.this.*.name
}
output "cloudwatch_log_group_retention_days" {
description = "List of Retention in Days configuration of Cloudwatch Log Groups"
value = aws_cloudwatch_log_group.this.*.retention_in_days
}
# CODEPIPELINE SNS EVENTS
output "codepipeline_events_sns_arn" {
description = "ARN of CodePipeline's SNS Topic"
value = var.codepipeline_events_enabled ? join(",", aws_sns_topic.codepipeline_events.*.arn) : "not set"
}