Skip to content

Commit

Permalink
fix(elasticloadbalancingv2): should allow more than 2 certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
andreialecu committed Mar 1, 2021
1 parent 76a7bfd commit e53efb2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,12 @@ export class ApplicationListener extends BaseListener implements IApplicationLis
this.certificateArns.push(first.certificateArn);
}

if (additionalCerts.length > 0) {
// Only one certificate can be specified per resource, even though
// `certificates` is of type Array
for (const cert of additionalCerts) {
new ApplicationListenerCertificate(this, id, {
listener: this,
certificates: additionalCerts,
certificates: [cert],
});
}
}
Expand Down

0 comments on commit e53efb2

Please sign in to comment.