Closed ptran32 closed 3 days ago
@ptran32 this error is coming from a bug in the underlying Cloud API. We expect to have a fix for it our by the end of August.
This error is only encountered when using an API Key from a user who is not the admin of an organisation. You could workaround the issue by using an org admin's API key in the meantime if that's possible.
Thank you for your response, I'll wait until the fix release as the workaround won't be possible due to security reasons.
Also experienced this error when trying to update ec_deployment.elasticsearch.config.user_settings
. Noting also that I'm using an API key that is an organisation admin, so I don't believe the workaround works.
# module.deployment_01.ec_deployment.default will be updated in-place
~ resource "ec_deployment" "default" {
~ elasticsearch = {
~ config = {
~ user_settings_yaml = <<-EOT
action.auto_create_index: false
xpack.security.audit.enabled: true
- xpack.security.audit.logfile.events.ignore_filters:
- no_index_filter:
- indices: ["", ".*"]
EOT
# (1 unchanged attribute hidden)
}
# (12 unchanged attributes hidden)
}
# (11 unchanged attributes hidden)
}
I am getting the same error The requested cluster metadata changes are not permitted
. I am also using an Org admin API key.
Hi @ptran32,
Any update on a resolution for this issue, or a functioning workaround?
@chrispenny I understand the fix for this has been released. Are you still currently seeing these errors?
Hi all,
The workaround we did prior to the merge of this feature was to manually enable observability on the instance (in Elastic Cloud UI)
I can also confirm that adding observability on a new running instance, does work without issue.
I am closing this issue.
Readiness Checklist
Expected Behavior
I expect Terraform to update-in-place my running Elastic Cloud instance and enable observability
Current Behavior
When doing a Terraform plan, it shows me that the instance will be updated-in-place:
But when running Terraform apply, it is failing with an error:
clusters.cluster_settings_change_prohibited: The requested cluster metadata changes are not permitted
The code I have used
Steps to Reproduce
Context
This is blocking me for sending metrics to a dedicated monitoring instance as recommended in this guide
Possible Solution
Make the update-in-place possible via Terraform.
Your Environment