Skip to content

[BUG] example/default: Error: Output refers to sensitive values #827

Closed

Description

@kuvaldini

terraform init && terraform apply

results to

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

Activity

  1. kuvaldini commented on May 13, 2021

    @kuvaldini
    ContributorAuthor

    Need to mark it as sensitive

    output "webhook" {
      value = {
        secret   = random_password.random.result
        endpoint = module.runners.webhook.endpoint
      }
      sensitive = true
    }
    

    sensitive output will be hidden so need to request it explicitly

    terraform output webhook
    
  2. changed the title [-]example/default: Error: Output refers to sensitive values[/-] [+][BUG] example/default: Error: Output refers to sensitive values[/+] on May 21, 2021
  3. npalm commented on May 25, 2021

    @npalm
    Member

    Feel free to create a PR

  4. added
    good first issue
    on May 25, 2021
  5. npalm commented on Jul 14, 2021

    @npalm
    Member

    Default example is now update for terraform 1.x.x, the example README contains instruction for retrieving the sentive value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions