From 8ac0e8a0fcf810825048c88929a8c04fa7210d24 Mon Sep 17 00:00:00 2001 From: Owen Wu <55355014+owenwu811@users.noreply.github.com> Date: Sat, 8 Jul 2023 20:43:46 -0700 Subject: [PATCH] Update outputs.tf --- aws_la_cloudplayground_multiple_workers_version/outputs.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aws_la_cloudplayground_multiple_workers_version/outputs.tf b/aws_la_cloudplayground_multiple_workers_version/outputs.tf index 0862a1b..4d6ed70 100644 --- a/aws_la_cloudplayground_multiple_workers_version/outputs.tf +++ b/aws_la_cloudplayground_multiple_workers_version/outputs.tf @@ -1,3 +1,6 @@ +// By defining these outputs, you can obtain resource values after deploying the infrastructure by executing the "terraform output" command in the console + +// stores ids for amis to be used for spinning up EC2 instances in each respective region output "amiId-us-east-1" { value = data.aws_ssm_parameter.linuxAmi.value } @@ -5,6 +8,8 @@ output "amiId-us-east-1" { output "amiId-us-west-2" { value = data.aws_ssm_parameter.linuxAmiOregon.value } + +//provides output of main jenkins server through retriving public and private addresses of of the EC2 instance named "jenkins-master" output "Jenkins-Main-Node-Public-IP" { value = aws_instance.jenkins-master.public_ip } @@ -23,7 +28,7 @@ output "Jenkins-Worker-Private-IPs" { instance.id => instance.private_ip } } - +// retrieves the fully qualified domain name of of an AWS ROUTE 53 record named Jenkins. This output provides the url that can be used to access the Jenkins server. output "url" { value = aws_route53_record.jenkins.fqdn }