Closed lmpardey closed 2 years ago
Maybe instead of setting this output to sensitive you could use the nonsensitive() to mimic the default behavior without hiding the output as sensitive. https://www.terraform.io/language/functions/nonsensitive
@iamnicolasvdb it should be the choice of the implementer whether the sensitive value is displayed in the command-line output. I would not make it a default. Forcing the output as nonsensitive
forces this choice on the implementer of the module.
The AWS provider may expose all the attributes of a resource as nonsensitive by default, but this does not mean it is a good idea. Terraform shows the warning for this attribute for a reason. The Terraform documentation recommends to mark any outputs which contain sensitive information as sensitive
.
This PR makes the module comply with the requirements by Terraform that outputs containing sensitive data should use the sensitive
function. This will let the root module be referenced in other modules or used in other tools that integrate Terraform without breaking, since it is not following the requirements of marking the output as sensitive.
This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days
Still awaiting for review. Comment to keep the PR open.
This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days
This PR was automatically closed because of stale in 10 days
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
The module output
vpn_connection_customer_gateway_configuration
is set as sensitive.Motivation and Context
Referencing the output
vpn_connection_customer_gateway_configuration
in another output results in an error message that this referenced value contains sensitive information and should be marked assensitive
.Using the updated example
minimal-vpn-gateway
to reference the output results in the following error (before the PR):Following the advice shown by Terraform, this PR sets the output in the root module to sensitive.
Breaking Changes
None known.
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request