Difference between revisions of "Output.tf"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:
 
* [[Terraform best practices]]
 
* [[Terraform best practices]]
 
* [[Terraform: output]]
 
* [[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: