Files
floci/src
kenny-ish db86fc7d72 fix(cloudmap): keep an empty HealthCheckCustomConfig and report FailureThreshold 1 (#6792)
CreateService dropped a HealthCheckCustomConfig sent as {}. The handler
passed it through rawJson, which returns null for an empty object, so
the CreateService, GetService and ListServices responses left the field
out. Terraform sends {} when failure_threshold is unset and then sees a
change to the block on every plan.

FailureThreshold is no longer supported, and the Cloud Map API
reference says AWS always sets it to 1. The handler now keeps an empty
object for this field, and CloudMapService stores
{"FailureThreshold":1} for any HealthCheckCustomConfig, so a service
created through CloudFormation reads back the same way.

Fixes #6751
2026-10-28 07:24:01 -04:00
..