Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confluent_transit_gateway_attachment resource re-creates attachment when routes changes #524

Open
ernesto-hrp opened this issue Jan 10, 2025 · 1 comment
Labels

Comments

@ernesto-hrp
Copy link

Please make it so when updating the routes list of the confluent_transit_gateway_attachment resource the attachment is not recreated. Every time I have to update this I need to file a support ticket, so I trust you guys can update the code here to not make it recreate it.

resource "confluent_transit_gateway_attachment" "this" {
  display_name = "transit-gateway-attachment"
  aws {
    ram_resource_share_arn = <share_arn>
    transit_gateway_id     = <gateway_id>
    routes = [...] # <---- CHANGING THIS RECREATES THE ATTACHMENT.
  }
  environment {
    id = enviornment
  }
  network {
    id = network_id
  }
}
@sajjadlateef
Copy link

Thank you for filing this request.

Currently, the backend API for transit gateway attachment does not support updating the spec.cloud.routes attributes.
We will need to update the PATCH API for changing the routes, before we can support updating the routes in the Terraform provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants