[elasticloadbalancing] Clarify expected value of sslCertificateId property of LoadBalancerListener is an ARN #9303
Labels
@aws-cdk/aws-elasticloadbalancing
Related to Amazon Elastic Load Balancing
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
p2
https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-elasticloadbalancing.LoadBalancerListener.html#sslcertificateid
I was attempting to replicate some existing AWS resources in a CDK app and one of the resources was a Classic Load Balancer which had an HTTPS listener and was using an ACM certificate. The documentation describes the
sslCertificateId
property ofLoadBalancerListener
as the "ID of the SSL Certificate", and the data type of the field is astring
, so I supplied the ACM identifier. When I triedcdk deploy
, I eventually got an HTTP 400 error "Server Certificate not found for the key". I verified that I had no typos and was left a little confused as to why thesslCertificateId
was not found, so I went to the CLI documentation looking for additional information on the API call being used and any restrictions on the input. I landed on the AWS CLI documentation for set-load-balancer-listener-ssl-certificate, where the definition of--ssl-certificate-id
states that this is the ARN of the SSL Certificate.I would like the CDK documentation updated to reflect this, and explicitly state that
sslCertificateId
refers to the ARN of the certificate and not just the identifier, as simply referring to it as an ID or identifier is a bit ambiguous for those not already aware that the expected value is an ARN.This is a 📕 documentation issue
The text was updated successfully, but these errors were encountered: