-
Notifications
You must be signed in to change notification settings - Fork 167
Open
Labels
Description
Documentation link
https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/okms_secret
Description
The documentation has the following example
resource "ovh_okms_secret" "example" {
okms_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
path = "app/api_credentials"
# Ensure no concurrent update happened: set cas to the current version
# (metadata.current_version is populated after first apply)
cas = ovh_okms_secret.example.metadata.current_version
metadata = {
cas_required = true
}
version = {
data = jsonencode({
api_key = var.api_key
api_secret = var.new_api_secret # changed value -> creates new version
})
}
}
and this runs into the following error
Error: Self-referential block
│ Configuration for ovh_okms_secret.example may not refer to itself.