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

Changing integration installation_id results in error #174

Open
raizyr opened this issue Aug 20, 2024 · 0 comments
Open

Changing integration installation_id results in error #174

raizyr opened this issue Aug 20, 2024 · 0 comments

Comments

@raizyr
Copy link

raizyr commented Aug 20, 2024

When trying to update an integration that includes a change to the installation_id, the provider gives this error.

╷
│ Error: failed to update integration
│ 
│   with port_integration.my_integration,
│   on .terraform/main.tf line 8, in resource "port_integration" "my_integration":8: resource "port_integration" "my_integration" {
│ 
│ failed to update integration, got:
│ {"ok":false,"error":"not_found","message":"Integration with installationId
\"tf-my-ocean-integration\" was not
│ found","details":{"resource":"Integration","byField":"installationId","withValue":"tf-my-ocean-integration"}}
╵

example main.tf

resource "port_integration" "my_integration" {
  installation_id       = "tf-my-ocean-integration"
  installation_app_type = "my-ocean"
  version               = "1.0"
  title                 = "My Ocean Integration"
  config                = jsonencode(yamldecode(file("${path.module}/mapping.yml")))
}

initial main.tf

resource "port_integration" "my_integration" {
  installation_id       = "my-ocean-integration"
  installation_app_type = "my-ocean"
  version               = "1.0"
  title                 = "My Ocean Integration"
  config                = jsonencode(yamldecode(file("${path.module}/mapping.yml")))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant