Skip to content

Update outputs.tf #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion aws_la_cloudplayground_multiple_workers_version/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
// 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
}

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
}
Expand All @@ -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
}