GithubHelp home page GithubHelp logo

Comments (2)

villevsv-upcloud avatar villevsv-upcloud commented on August 16, 2024

Hello! Your configuration outputs following warning, because the password field is marked as sensitive in our provider:

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: Output refers to sensitive values
│ 
│   on main.tf line 33:
│   33: output "database_user_passwords" {
│ 
│ 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
╵

This happens at least with these versions of Terraform client and UpCloud provider (terraform -version):

Terraform v1.8.4
on linux_amd64
+ provider registry.terraform.io/upcloudltd/upcloud v5.5.0

You can output the password directly to the Terraform output with nonsensitive(user.password) or, by using a more recommended technique, adding sensitive = true in the output block and running terraform output -raw database_user_passwords after apply.

More details can be found in this HashiCorp article: https://support.hashicorp.com/hc/en-us/articles/5175257151891-How-to-output-sensitive-data-with-Terraform

I will be closing this ticket as the provider works how it's intended and the question should be answered.

from terraform-provider-upcloud.

back-2-95 avatar back-2-95 commented on August 16, 2024

Thanks for the tips! I was using -json param so it should have given the values but they came as "".

from terraform-provider-upcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.