terraform-maven
terraform-maven copied to clipboard
Assign output to environment variable
Hello folks,
Many thanks for your efforts and very cool plugin, it rocks!
Is there any possibility to assign output to env variable?
Example main.tf:
output "gce_public_ip" {
value = element(concat(google_compute_instance.vm_instance.*.network_interface.0.access_config.0.nat_ip, list("")), 0)
}
After I execute applying I have output gce_public_ip which I would like to reuse in other build steps so I guess it would be good assigning gce_public_ip to the environment variable, right?
Any help will be really appreciated!