Difference between revisions of "Output.tf"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
   value = [[aws_instance]].server.private_ip
 
   value = [[aws_instance]].server.private_ip
 
  }
 
  }
 +
 +
output "region" {
 +
  description = "AWS region"
 +
  value      = [[var.]]region
 +
}
 +
  
 
== Related ==
 
== Related ==
 
* <code>[[terraform output]]</code>
 
* <code>[[terraform output]]</code>
 +
* [[Terraform best practices]]
 +
* [[Terraform: output]]
 +
* [[Terraform best practices]]: Don't pass outputs directly through input variables,
 +
* <code>[[Error: Missing required argument]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 11:30, 30 April 2023


output "my_cluster_version" {
  description = "The Kubernetes server version for the EKS cluster."
  value       = module.eks.cluster_version
}


output "instance_ip_addr" {
  value = aws_instance.server.private_ip
}
output "region" {
  description = "AWS region"
  value       = var.region
}


Related[edit]

See also[edit]

Advertising: