Open amitkothari opened 2 months ago
Hi @amitkothari. It sounds to me you've bumped an existing issue. Please check the issue https://github.com/hashicorp/terraform-provider-vault/issues/1903#issuecomment-2364740948 - and this is also the link to my latest finding for a possible fix. We were just able to go into the latest version (4+) after a 1,5 year blocker.
Thanks @iniinikoski I will give it a try.
@iniinikoski setting set_namespace_from_token
to false fixed the issue. Thank you so much :)
We are currently using an older version of the Vault provider and are trying to upgrade to a more recent version. Following the upgrade guide, we plan to upgrade to version
3.25.0
first and then to4.x.x
. However, we encounter an error with the vault_policy resource for any version after3.15.2
.Terraform Core Version
1.1.9
Terraform Vault Provider Version
3.16.0
Vault Server Version
1.15.8
Affected Resource(s)
Expected Behavior
There are no changes to the resource configuration, so the upgrade should proceed without requiring any infrastructure modifications or causing errors.
Actual Behavior
Getting following error
Here
<cluster-url>
is our vault cluster url in HashiCorp cloud.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
main.tf
Sample policy hcl
test-policy.hcl
Steps to Reproduce
required_providers
, set"~> 3.15.2"
as vault version.terraform init
to initialise workspaceterraform apply
to apply changes"~> 3.16"
terraform init -upgrade
to upgrade provider versionterraform apply
to apply changesDebug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None