fix(elbv2): hold an ACM certificate in use while a listener serves it (#6056)

This commit is contained in:
Younes Beriane authored and GitHub committed 2026-10-24 00:04:54 -04:00
1 parent 348874766f
commit 020015fd4e
5 files changed
+6 -5

No files matched your search

@@ -354,7 +354,7 @@ public class AcmService implements ResourceProvider {
List<String> consumers = certificateInUseBy(certificateArn, region);
if (!consumers.isEmpty()) {
throw new AwsException("ResourceInUseException",
"Certificate " + certificateArn + " is in use by: " + String.join(", ", consumers), 409);
"Certificate " + certificateArn + " is in use by: " + String.join(", ", consumers), 400);
}
String storageKey = regionKey(region, cert.extractCertificateId());