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

Creating scm_snippet fails with error "An unexpected error was encountered trying to build a value" #5

Open
kaisero opened this issue Jan 16, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@kaisero
Copy link

kaisero commented Jan 16, 2024

Describe the bug

When creating an scm_snippet terraform apply fails with the following error

│ Error: Value Conversion Error
│ 
│   with scm_snippet.example,
│   on scm.tf line 1, in resource "scm_snippet" "example":
│    1: resource "scm_snippet" "example" {
│ 
│ An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the following to the provider developer:
│ 
│ Received unknown value, however the target type cannot handle unknown values. Use the corresponding `types` package type or a custom type that handles unknown values.
│ 
│ Path: folders
│ Target Type: []provider.snippetRsModel_ujXZojh_FolderObject
│ Suggested Type: basetypes.ListValue

Expected behavior

Snippet should be created

Current behavior

Operation fails

Steps to reproduce

Define a provider (tried api.strata.paloaltonetworks.com and api.sase.paloaltonetworks.com) and resource and apply configuration

terraform {
  required_providers {
    scm = {
      source  = "paloaltonetworks/scm"
      version = "0.1.1"
    }
  }
}

provider "scm" {
  host          = "api.strata.paloaltonetworks.com"
  client_id     = "YOUR-CLIENT-ID"
  client_secret = "YOUR-CLIENT-SECRET"
  scope         = "tsg_id:YOUR-TSG-ID"
}
resource "scm_snippet" "example" {
  name = "example"
}

Your Environment

Terraform v1.6.6
MacOS 13.6.3 (darwin_arm64)
Provider registry.terraform.io/paloaltonetworks/scm v0.1.1

@kaisero kaisero added the bug Something isn't working label Jan 16, 2024
@shinmog
Copy link
Collaborator

shinmog commented Feb 6, 2024

I've reached out to my contact at HashiCorp to see if I can figure out why this is happening...

@ancoleman
Copy link
Contributor

@shinmog any updates on moving forward with this?

@shinmog
Copy link
Collaborator

shinmog commented Mar 11, 2024

Not yet. I was redirected, and haven't re-followed up on this yet.

@aSauerwein
Copy link

Hi!

I've just tried to use Terraform with SCM and came across this Issue on version 0.9.2.
Do you have an update on this ?

Thanks

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

4 participants