Open itot555 opened 1 month ago
Terraform version: 1.9.7 HCP provider version: 0.97.0
resource "hcp_iam_workload_identity_provider" "example" { name = "github-example" service_principal = hcp_service_principal.deployment_sp.resource_name description = "Allow acme-repo deploy workflow to access my-app-runtime service principal" oidc { issuer_uri = "https://token.actions.githubusercontent.com" } conditional_access = "<CONDITION>" }
terraform apply with example code in hcp_iam_workload_identity_provider.
terraform apply
hcp_iam_workload_identity_provider
Error output like the following.
oidc { Blocks of type "oidc" are not expected here. Did you mean to define argument "oidc"? If so, use the equals sign to assign it a value.
The oidc block was defined as an argument and set to a value with = like the following and terraform apply ran successfully.
oidc
=
oidc = { issuer_uri = "https://token.actions.githubusercontent.com" }
Ran into this as well and made PR to fix the documentation
https://github.com/hashicorp/terraform-provider-hcp/pull/1115
Terraform Version and Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Steps to Reproduce
terraform apply
with example code inhcp_iam_workload_identity_provider
.Error output like the following.
Expected Behavior
The
oidc
block was defined as an argument and set to a value with=
like the following andterraform apply
ran successfully.Actual Behavior
Important Factoids
References
0000
Community Note