Skip to content
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

hcp_vault_secrets_app description parameter is listed as optional but resource creation fails if not provided #655

Open
kotom541 opened this issue Oct 25, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@kotom541
Copy link

Terraform version: 1.6.2
HCP provider version: v0.74.1

Affected Resource(s)

resource hcp_vault_secrets_app

Terraform Configuration Files

terraform {
  cloud {
    organization = "PRIVATE"

    workspaces {
      name = "PRIVATE"
    }
  }
  required_providers {
    hcp = {
      source  = "hashicorp/hcp"
      version = ">=0.74.1"
    }
  }
}

provider "hcp" {
  project_id = "PRIVATE"
  client_id     = var.hcp_client_id
  client_secret = var.hcp_client_secret
}
variable "hcp_client_id" {
    type = string
}

variable "hcp_client_secret" {
    type = string
    sensitive = true
}
resource "hcp_vault_secrets_app" "demo" {
  app_name = "hcp-bug-demo"
}

Debug Output

│ Error: Provider produced inconsistent result after apply

│ When applying changes to hcp_vault_secrets_app.demo, provider
│ "provider["registry.terraform.io/hashicorp/hcp"]" produced an unexpected
│ new value: .description: was null, but now cty.StringVal("").

│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker

Steps to Reproduce

  1. terraform apply

Expected Behavior

hcp_vault_secrets_app resource should be created with blank description.

Actual Behavior

hcp_vault_secrets_app resource failed to be created.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@kotom541 kotom541 added the bug Something isn't working label Oct 25, 2023
@maxcoulombe
Copy link
Contributor

Hey, thanks for reporting this issue. It should be addressed in #1118 among a number of additional fixes for the HVS App resource!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants