Skip to content

Commit

Permalink
Merge pull request #1 from avinava-mycelium/terraform-module-update-o…
Browse files Browse the repository at this point in the history
…utputs

Automating the outputs generated from module
  • Loading branch information
avinava-mycelium authored Jul 18, 2022
2 parents 28f8859 + 87e3b5d commit 59e1852
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/.DS_Store
/.history
/.history
.terraform
terraform.tfvars
14 changes: 7 additions & 7 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
output "eth_fm_instance_name" {
description = "The name of the VM instance holding the node"
value = module.chainlinknode.instances_details[0].name
value = google_compute_instance.this.name
}

output "eth_fm_disk_name" {
description = "The boot disk name of the node"
value = module.chainlinknode.instances_details[0].boot_disk[0].device_name
value = google_compute_instance.this.boot_disk[0].device_name
}

output "eth_fm_disk_size" {
description = "The boot disk size of the node"
value = module.chainlinknode.instances_details[0].boot_disk[0].initialize_params[0].size
value = google_compute_instance.this.boot_disk[0].initialize_params[0].size
}

output "eth_fm_gcs_startup_script" {
description = "The private bucket location for the startup script of the node"
value = module.chainlinknode.instances_details[0].metadata.startup-script-url
value = google_compute_instance.this.metadata.startup-script-url
}

output "eth_fm_external_ip_addresses" {
description = "The public IP address of the node"
value = module.chainlinknode.instances_details[0].network_interface[0].access_config[0].nat_ip
value = google_compute_instance.this.network_interface[0].access_config[0].nat_ip
}

output "eth_fm_internal_ip_addresses" {
description = "The internal static IP address of the node"
value = module.chainlinknode.static_internal_ip[0].addresses[0]
value = module.address.addresses[0]
}

output "eth_fm_internal_ip_names" {
description = "The internal static IP names of the node"
value = module.chainlinknode.static_internal_ip[0].names[0]
value = module.address.names[0]
}

0 comments on commit 59e1852

Please sign in to comment.