scastria / terraform-provider-apigee

Mozilla Public License 2.0
21 stars 19 forks source link

apigee_proxy_deployment - error on update #54

Closed bstraehle closed 2 years ago

bstraehle commented 2 years ago

Apigee Edge for Private Cloud: 4.5.1 Terraform Apigee provider: 0.1.51

Resource apigee_proxy works and apigee_proxy_deployment works on create but fails on update with the following error:

Error: Status 400: Message: Bad Request: {
  "code" : "distribution.DeploymentPathConflict",
  "message" : "Path /abc conflicts with existing deployment path for revision 123 of the APIProxy abc-api in organization xyz-org, environment dev",
  "contexts" : [  ]
}

For reference, resource apigee_shared_flow_deployment works for both create and update.

bstraehle commented 2 years ago

Using a different zip bundle name avoids the issue. We will need a change to our CD pipelines, but it is workable. Thanks.