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 }