-
Notifications
You must be signed in to change notification settings - Fork 2
/
outputs.tf
31 lines (24 loc) · 834 Bytes
/
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
output "privateip" {
value = ["${aws_instance.tfe-server[*].private_ip}"]
}
output "publicip" {
value = ["${aws_instance.tfe-server[*].public_ip}"]
}
output "publicdns" {
value = ["${aws_instance.tfe-server[*].public_dns}"]
}
output "message" {
value = <<EOF
Please review /var/log/tf-user-data.log for userdata script logs.
SSH Connection:
ssh -i ~/.ssh/${var.environment_name}.pem ubuntu@${aws_instance.tfe-server[0].public_ip}
TFE Setup URL:
https://${aws_instance.tfe-server[0].public_dns}:8800
External Component Settings:
S3 Bucket Name: ${aws_s3_bucket.tfe-bucket.bucket}
Database Hostname: ${aws_db_instance.tfe.address}
Database Name: ${replace(var.environment_name, "-", "")}db
Database Username: ${var.dbusername}
Database Password: ${local.dbpassword}
EOF
}