forked from terraform-aws-modules/terraform-aws-atlantis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
119 lines (97 loc) · 2.92 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
# Atlantis
output "atlantis_url" {
description = "URL of Atlantis"
value = local.atlantis_url
}
output "atlantis_url_events" {
description = "Webhook events URL of Atlantis"
value = local.atlantis_url_events
}
output "atlantis_repo_allowlist" {
description = "Git repositories where webhook should be created"
value = var.atlantis_repo_allowlist
}
output "webhook_secret" {
description = "Webhook secret"
value = try(random_id.webhook[0].hex, "")
sensitive = true
}
# ECS
output "task_role_arn" {
description = "The Atlantis ECS task role arn"
value = aws_iam_role.ecs_task_execution.arn
}
output "task_role_id" {
description = "The Atlantis ECS task role id"
value = aws_iam_role.ecs_task_execution.id
}
output "task_role_name" {
description = "The Atlantis ECS task role name"
value = aws_iam_role.ecs_task_execution.name
}
output "task_role_unique_id" {
description = "The stable and unique string identifying the Atlantis ECS task role."
value = aws_iam_role.ecs_task_execution.unique_id
}
output "ecs_task_definition" {
description = "Task definition for ECS service (used for external triggers)"
value = aws_ecs_service.atlantis.task_definition
}
output "ecs_security_group" {
description = "Security group assigned to ECS Service in network configuration"
value = module.atlantis_sg.security_group_id
}
output "ecs_cluster_id" {
description = "ECS cluster id"
value = local.ecs_cluster_id
}
output "ecs_cluster_arn" {
description = "ECS cluster ARN"
value = module.ecs.ecs_cluster_arn
}
# VPC
output "vpc_id" {
description = "ID of the VPC that was created or passed in"
value = local.vpc_id
}
output "private_subnet_ids" {
description = "IDs of the VPC private subnets that were created or passed in"
value = local.private_subnet_ids
}
output "public_subnet_ids" {
description = "IDs of the VPC public subnets that were created or passed in"
value = local.public_subnet_ids
}
# ALB
output "alb_dns_name" {
description = "Dns name of alb"
value = module.alb.lb_dns_name
}
output "alb_zone_id" {
description = "Zone ID of alb"
value = module.alb.lb_zone_id
}
output "alb_arn" {
description = "ARN of alb"
value = module.alb.lb_arn
}
output "alb_security_group_id" {
description = "Security group of alb"
value = module.alb_https_sg.security_group_id
}
output "alb_http_listeners_id" {
description = "Ids of alb http listeners"
value = module.alb.http_tcp_listener_ids
}
output "alb_http_listeners_arn" {
description = "ARNs of alb http listeners"
value = module.alb.http_tcp_listener_arns
}
output "alb_https_listeners_id" {
description = "Ids of alb https listeners"
value = module.alb.https_listener_ids
}
output "alb_https_listeners_arn" {
description = "ARN of alb https listeners"
value = module.alb.https_listener_arns
}