-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
29 lines (19 loc) · 1.08 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
29
output "IP_ADDRESS" {
value = ibm_is_floating_ip.floatingip.address
}
output "INSTANCE_ID" {
value = ibm_is_instance.instance.id
}
output "next_steps" {
value = <<NEXTSTEPS
### You can access the trusted profile created for the instance using the IBM Cloud Console UI by the following URL:
https://cloud.ibm.com/iam/trusted-profiles/iam-${ibm_iam_trusted_profile.iam_trusted_profile.id}?tab=trustrelationship
### You can access the VSI ${ibm_is_instance.instance.name} using the following SSH command:
ssh -i local/build_key_rsa root@${ibm_is_floating_ip.floatingip.address}
### You can enable the Metadata service on the VSI ${ibm_is_instance.instance.name} using the following command:
ibmcloud is instance-update ${ibm_is_instance.instance.id} --metadata-service true --output JSON
echo y | ibmcloud is instance-stop ${ibm_is_instance.instance.id} --output JSON
ibmcloud is instance-start ${ibm_is_instance.instance.id} --output JSON
--------------------------------------------------------------------------------
NEXTSTEPS
}