Terraform Version
terraform version
Terraform v1.4.2
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.45.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.2.0
+ provider registry.terraform.io/hashicorp/helm v2.7.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.16.1
+ provider registry.terraform.io/hashicorp/random v3.4.3
+ provider registry.terraform.io/hashicorp/time v0.9.1
+ provider registry.terraform.io/hashicorp/tls v4.0.4
Terraform Configuration Files
Previously, the following output in the root module wasn't marked as sensitive:
output "cluster_details" {
description = "EKS cluster information"
value = {
cluster_name = local.cluster_name
cluster_asg_name = module.base-infrastructure.eks.cluster_asg_name
}
}
locals {
cluster_name = format("test-%s-cluster", var.environment_name)
}
Debug Output
Error: Output refers to sensitive values
on outputs.tf line 11:
11: output "cluster_details" {
To reduce the risk of accidentally exporting sensitive data that was intended
to be only internal, Terraform requires that any root module output
containing sensitive data be explicitly marked as sensitive, to confirm your
intent.
If you do intend to export this data, annotate the output value as sensitive
by adding the following argument:
sensitive = true
Expected Behavior
No error should be presented as there's nothing sensitive, just cluster and ASG name.
Actual Behavior
Terraform apply fails with an error.
Steps to Reproduce
Just do terraform apply to a project with eks module and the above output.
Additional Context
No response
References
No response
Terraform Version
Terraform Configuration Files
Previously, the following output in the root module wasn't marked as sensitive:
Debug Output
Expected Behavior
No error should be presented as there's nothing sensitive, just cluster and ASG name.
Actual Behavior
Terraform apply fails with an error.
Steps to Reproduce
Just do terraform apply to a project with eks module and the above output.
Additional Context
No response
References
No response