Skip to content

Changing integration installation_id results in error #174

Open
@raizyr

Description

@raizyr

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")))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions