From 1852a0b30f8a8d254fd8a48cff4382a828ea60b0 Mon Sep 17 00:00:00 2001 From: Justin Reynolds Date: Thu, 15 Mar 2018 22:59:35 -0700 Subject: [PATCH] fix(amazon/loadBalancers): Remove cert and ssl policies when submitting http listener (#5011) --- .../configure/application/CreateApplicationLoadBalancer.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/scripts/modules/amazon/src/loadBalancer/configure/application/CreateApplicationLoadBalancer.tsx b/app/scripts/modules/amazon/src/loadBalancer/configure/application/CreateApplicationLoadBalancer.tsx index 7bea141244e..f4c85aa35ae 100644 --- a/app/scripts/modules/amazon/src/loadBalancer/configure/application/CreateApplicationLoadBalancer.tsx +++ b/app/scripts/modules/amazon/src/loadBalancer/configure/application/CreateApplicationLoadBalancer.tsx @@ -84,6 +84,10 @@ export class CreateApplicationLoadBalancer extends React.Component { return ReactInjector.accountService.getAccountDetails(command.credentials).then((account) => { command.listeners.forEach((listener) => { + if (listener.protocol === 'HTTP') { + delete listener.sslPolicy; + listener.certificates = []; + } listener.certificates.forEach((certificate) => { certificate.certificateArn = this.certificateIdAsARN(account.accountId, certificate.name, command.region, certificate.type || this.certificateTypes[0]);