cloudformation-template icon indicating copy to clipboard operation
cloudformation-template copied to clipboard

New updates in datadog_integration_api_call_v2.yaml make the lambda failed to update integration and then delete integration

Open JustinLiang90 opened this issue 1 year ago • 0 comments

Expected Behavior

The lambda embedded in the datadog_integration_api_call_v2.yaml should return SUCCESS not FAILED if Update not supported, no operation performed. So that it will not return error to the AWS Cloudformation deployment, then it won't block the stack deployment to continue.

Actual Behavior

Our AWS Cloudformation deployment failed because of the embedded lambda in datadog_integration_api_call_v2.yaml returns 400 bad request because of Update not supported, no operation performed.

This makes the AWS Cloudformation trigger rollback and delete the entire Datadog integration in the following action. See the below screenshot, the log is printted by the lambda itself.

We cannot re-created the integration because it may be deleted again after get Update not supported, no operation performed. error.

Screenshot 2024-05-05 at 8 32 57 PM

Steps to Reproduce the Problem

  1. Deploy previous version of a stack based on datadog_integration_api_call_v2.yaml.
  2. Try to update the stack (pulling the latest version of the file).
  3. See it fail because it does not support update.

Specifications

  • Datadog CloudFormation template version: datadog_integration_api_call_v2.yaml

Stacktrace

Update not supported, no operation performed.

Related PR

https://github.com/DataDog/cloudformation-template/pull/100

JustinLiang90 avatar May 05 '24 22:05 JustinLiang90