Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing information if the variable is sensitive #798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AlexLudwigITDienstleistungen opened this issue Sep 4, 2024 · 0 comments
Open
Labels

Comments

@AlexLudwigITDienstleistungen

Describe the bug

Terraform-docs doesn't document whether a variable or an output is sensitive.

How can we reproduce it?

Create a terraform variable like this:

variable "password" {
description = "Password"
sensitive = true
type = string
}

Run terraform-docs:

terraform-docs.exe markdown .

Expected behavior

## Inputs

| Name | Description | Type | Default | Required | Sensitive |
|------|-------------|------|---------|:--------:|-----|
| <a name="input_password"></a> [password](#input\password) | Password | `string` | n/a | yes | yes |

Actual behavior

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|-----|
| <a name="input_password"></a> [password](#input\password) | Password | `string` | n/a | yes |

Further information

This error also occurs when using the terraform-docs json command.

Environment information

terraform-docs version v0.18.0 228c7a7 windows/amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant