-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApplicationLoadBalancer.addListener fails with "Up to '1' certificate ARNs can be specified, but '2' were specified" #3757
Comments
Workaround is to do something like this, but it's not very intuitive:
|
This is because the CloudFormation resource accepts an array that must have exactly one entry: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-certificates The solution will be to take all certificates after the first (if any) and create |
Fixes a cloudformation error when attaching multiple certificates to an alb listener. Cloudformation allows only a single certificate attached to the `LoadBalancer` resource. If multiple certificates are passed to the construct on initialization or through the `.addCertificateArns` method, separate `ListenerCertificate` resources are created for all after the first. Closes [issue aws#3757](aws#3757)
Fixes a cloudformation error when attaching multiple certificates to an alb listener. Cloudformation allows only a single certificate attached to the `LoadBalancer` resource. If multiple certificates are passed to the construct on initialization or through the `.addCertificateArns` method, separate `ListenerCertificate` resources are created for all after the first. Closes [issue aws#3757](aws#3757)
* fix(elasticloadbalancingv2): Allow Multiple Certificates on ALB Listener Fixes a cloudformation error when attaching multiple certificates to an alb listener. Cloudformation allows only a single certificate attached to the `LoadBalancer` resource. If multiple certificates are passed to the construct on initialization or through the `.addCertificateArns` method, separate `ListenerCertificate` resources are created for all after the first. Closes [issue #3757](#3757) * PR Revisions
* fix(elasticloadbalancingv2): Allow Multiple Certificates on ALB Listener Fixes a cloudformation error when attaching multiple certificates to an alb listener. Cloudformation allows only a single certificate attached to the `LoadBalancer` resource. If multiple certificates are passed to the construct on initialization or through the `.addCertificateArns` method, separate `ListenerCertificate` resources are created for all after the first. Closes [issue #3757](#3757) * PR Revisions
馃悰 Bug Report
What is the problem?
ApplicationLoadBalancer.addListener fails with "Up to '1' certificate ARNs can be specified, but '2' were specified"
The
certificateArns
property is a list, but providing multiple certificates will cause a deployment failure.Reproduction Steps
Environment
The text was updated successfully, but these errors were encountered: