You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked to make sure that this issue has not already been filed
I am reporting the issue to the correct repository (for multi-repository projects)
Expected Behavior
Creating a new Traffic Filter with ec_deployment_traffic_filter completes successfully.
Current Behavior
After creating the resource in my account in EC (which happens successfully and it's visible in the console) the provider is unable to read back the resource details/id to store the state.
ec_deployment_traffic_filter.argonaut: Creating...
ec_deployment_traffic_filter.azure: Creating...
│ Error: Failed to read deployment traffic filter ruleset after create.
│
│ with ec_deployment_traffic_filter.argonaut,
│ on main.tf line 85, in resource "ec_deployment_traffic_filter" "argonaut":
│ 85: resource "ec_deployment_traffic_filter" "argonaut" {
│
│ Failed to read deployment traffic filter ruleset after create.
╵
╷
│ Error: Failed to read deployment traffic filter ruleset after create.
│
│ with ec_deployment_traffic_filter.azure,
│ on main.tf line 106, in resource "ec_deployment_traffic_filter" "azure":
│ 106: resource "ec_deployment_traffic_filter" "azure" {
│
│ Failed to read deployment traffic filter ruleset after create.
╵
I also cannot import an existing resource (note: portion of ID replaced with xxx):
% terraform import ec_deployment_traffic_filter.argonaut 8a3910xxx999327
data.ec_stack.latest: Reading...
data.ec_stack.latest: Read complete after 1s [id=8.15.1]
ec_deployment_traffic_filter.argonaut: Importing from ID "8a3910xxx999327"...
ec_deployment_traffic_filter.argonaut: Import prepared!
Prepared ec_deployment_traffic_filter for import
ec_deployment_traffic_filter.argonaut: Refreshing state... [id=8a3910xxx999327]
╷
│ Error: Cannot import non-existent remote object
│
│ While attempting to import an existing object to "ec_deployment_traffic_filter.argonaut", the provider detected that no object exists with the given id. Only pre-existing objects can be imported; check that the id is correct and that it is associated with the
│ provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.
╵
## Terraform definition
Simple IP filter:
resource "ec_deployment_traffic_filter" "argonaut" {
name = "Argonaut ${var.ENV}"
region = ec_deployment.nzbn.region
type = "ip"
rule {
source = "xxx.xxx.xxx.xxx"
}
lifecycle {
ignore_changes = [rule]
}
depends_on = [ec_deployment.nzbn]
}
Run Terraform pipeline to manage deployment (update topology and resource sizing)
Note: other changes such as ec_deployment complete successfully prior to the traffic filters failing.
Context
This used to work and I was able to build the lower environments fine. Then after EC 8.15.0 was released this started failing and I can no longer manage the deployment fully via Terraform.
After upgrading to elastic/ec 0.11.0 it resolved some other problems with clusters.cluster_settings_change_prohibited: The requested cluster metadata changes are not permitted, but not this one.
Your Environment
Version used: ec 0.11.0 / Terraform 1.9.5
Running against Elastic Cloud 8.15.0 & 8.15.1
Operating System and version: Linux (ADO pipeline agent) and macOS Sonoma 14.6.1
The text was updated successfully, but these errors were encountered:
Running into this too. Seems like there is no way to use ec_deployment_traffic_filter via terraform.
Between this and the lack of support for customer-managed keys via this provider, I'm having trouble coming up with any sensible workflow for working with elastic from code.
Readiness Checklist
Expected Behavior
Creating a new Traffic Filter with ec_deployment_traffic_filter completes successfully.
Current Behavior
After creating the resource in my account in EC (which happens successfully and it's visible in the console) the provider is unable to read back the resource details/id to store the state.
I also cannot import an existing resource (note: portion of ID replaced with xxx):
## Terraform definition
Simple IP filter:
Azure Private Link filter:
Steps to Reproduce
Note: other changes such as
ec_deployment
complete successfully prior to the traffic filters failing.Context
This used to work and I was able to build the lower environments fine. Then after EC 8.15.0 was released this started failing and I can no longer manage the deployment fully via Terraform.
After upgrading to elastic/ec 0.11.0 it resolved some other problems with
clusters.cluster_settings_change_prohibited: The requested cluster metadata changes are not permitted
, but not this one.Your Environment
The text was updated successfully, but these errors were encountered: