Terraform state and Outputs
See terraform output documentation:
# outputs.tf output "helloIpAddress" { value = hcloud_server.mySrv.ipv4_address description = "The server's IPv4 address" } output "helloLocation" { value = hcloud_server.mySrv.location description = "The server's datacenter location" } |
$ terraform output helloLocation = "nbg1" helloIpAddress = "159.69.152.37" |
$ terraform output helloIpAddress "159.69.152.37" |
# outputs.tf output "helloIpAddress" { value = hcloud_server.mySrv.ipv4_address description = "The server's IPv4 address" } output "helloLocation" { value = hcloud_server.mySrv.location description = "The server's datacenter location" } |
terraform
{
"helloLocation": {
"sensitive": false,
"type": "string",
"value": "nbg1"
},
"helloIpAddress": {
"sensitive": false,
"type": "string",
"value": "159.69.152.37"
}
} |
No. 14
Adding ssh public keys and firewall
|
Q: |
Start from Your first server by Terraform. and:
Expected results:
Add another rule to your hcloud_firewall
enabling ICMP as well. Hit terraform
|
