From 304ad4e2ada79c94fbc93769e2c5da37ac8421ca Mon Sep 17 00:00:00 2001 From: fujiwara Date: Sat, 29 Jun 2024 03:33:15 +0900 Subject: [PATCH] init supresses DeploymentConfiguration.Alarms if CodeDeploy CodeDeploy does not support DeploymentConfiguration.Alarms --- ecspresso.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ecspresso.go b/ecspresso.go index e655f4fc..38d79bbe 100644 --- a/ecspresso.go +++ b/ecspresso.go @@ -61,7 +61,15 @@ func (d *App) newServiceFromTypes(ctx context.Context, in types.Service) (*Servi return aws.ToString(dp.Status) == "PRIMARY" }) if sv.isCodeDeploy() { - // CodeDeploy does not support ServiceConnectConfiguration and VolumeConfigurations + // CodeDeploy does not support + // - ServiceConnectConfiguration + // - VolumeConfigurations + // - DeploymentConfiguration.Alarms + sv.ServiceConnectConfiguration = nil + sv.VolumeConfigurations = nil + if sv.DeploymentConfiguration != nil { + sv.DeploymentConfiguration.Alarms = nil + } return &sv, nil } if len(dps) == 0 {