forked from cattle-ops/terraform-aws-gitlab-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
64 lines (52 loc) · 2.31 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
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 : 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 : 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
}
output "runner_user_data" {
description = "(Deprecated) The user data of the Gitlab Runner Agent's launch template. Set `var.debug.output_runner_user_data_to_file` to true to write `user_data.sh`."
value = local.template_user_data
}
output "runner_config_toml_rendered" {
description = "The rendered config.toml given to the Runner Manager."
value = local.template_runner_config
}