-
-
Notifications
You must be signed in to change notification settings - Fork 331
/
outputs.tf
54 lines (44 loc) · 2.09 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
output "runner_as_group_name" {
description = "Name of the autoscaling group for the gitlab-runner instance"
value = aws_autoscaling_group.gitlab_runner_instance.name
}
output "runner_cache_bucket_arn" {
description = "ARN of the S3 for the build cache."
value = length(module.cache) > 0 ? module.cache[0].arn : null
}
output "runner_cache_bucket_name" {
description = "Name of the S3 for the build cache."
value = length(module.cache) > 0 ? module.cache[0].bucket : null
}
output "runner_agent_role_arn" {
description = "ARN of the role used for the ec2 instance for the GitLab runner agent."
value = local.aws_iam_role_instance_arn
}
output "runner_agent_role_name" {
description = "Name of the role used for the ec2 instance for the GitLab runner agent."
value = local.aws_iam_role_instance_name
}
output "runner_role_arn" {
description = "ARN of the role used for the docker machine runners."
value = length(aws_iam_role.docker_machine) > 0 ? aws_iam_role.docker_machine[0].arn : (length(aws_iam_role.docker_autoscaler) > 0 ? aws_iam_role.docker_autoscaler[0].arn : null)
}
output "runner_role_name" {
description = "Name of the role used for the docker machine runners."
value = length(aws_iam_role.docker_machine) > 0 ? aws_iam_role.docker_machine[0].name : (length(aws_iam_role.docker_autoscaler) > 0 ? aws_iam_role.docker_autoscaler[0].name : null)
}
output "runner_agent_sg_id" {
description = "ID of the security group attached to the GitLab runner agent."
value = aws_security_group.runner.id
}
output "runner_sg_id" {
description = "ID of the security group attached to the docker machine runners."
value = length(aws_security_group.docker_machine) > 0 ? aws_security_group.docker_machine[0].id : null
}
output "runner_eip" {
description = "EIP of the Gitlab Runner"
value = length(aws_eip.gitlab_runner) > 0 ? aws_eip.gitlab_runner[0].public_ip : null
}
output "runner_launch_template_name" {
description = "The name of the runner's launch template."
value = aws_launch_template.gitlab_runner_instance.name
}