-
Notifications
You must be signed in to change notification settings - Fork 3
/
outputs.tf
28 lines (28 loc) · 1.01 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
resource "local_file" "jenkins_infra_data_report" {
content = jsonencode({
"${local.ci_jenkins_io_fqdn}" = {
"name_servers" = aws_route53_zone.aws_ci_jenkins_io.name_servers,
"outbound_ips" = {
"agents" = module.vpc.nat_public_ips,
"controller" = concat(
aws_instance.ci_jenkins_io.ipv6_addresses, # Public IPv6(s) (usually list of one element)
[aws_eip.ci_jenkins_io.public_ip], # Public IPv4 of the controller
),
},
"ec2-agents" = {
"subnet_ids" = [module.vpc.private_subnets[0]],
"security_group_names" = [
aws_security_group.ephemeral_vm_agents.name,
aws_security_group.unrestricted_out_http.name,
]
},
},
"cijenkinsio-agents-2" = {
"cluster_endpoint" = module.cijenkinsio-agents-2.cluster_endpoint
},
})
filename = "${path.module}/jenkins-infra-data-reports/aws-sponsorship.json"
}
output "jenkins_infra_data_report" {
value = local_file.jenkins_infra_data_report.content
}