terraform-provider-octopusdeploy
terraform-provider-octopusdeploy copied to clipboard
[0.30.2+] Error saving state: unsupported attribute "encrypted_value"
trafficstars
Describe the bug
Since 0.3.2, when using resource targeting, if an octopusdeploy_variable is not part of the plan, the following error is produced:
Error: Failed to save state
│
│ Error saving state: unsupported attribute "encrypted_value"
╵
╷
│ Error: Failed to persist state to backend
Steps to reproduce
# main.tf
resource "octopusdeploy_variable" "test" {
...
}
resource "terraform_data" "test" {
}
terraform apply -target 'terraform_data.test'
│ Error: Failed to save state
│
│ Error saving state: unsupported attribute "encrypted_value"
╵
╷
│ Error: Failed to persist state to backend
Expected behavior Plan/apply should succeed with resource targeting in effect.
Environment and versions:
- Terraform Version:
1.9.5 - Octopus Terraform Provider Version:
0.30.7