certificatemanager.DnsValidatedCertificate fails to create certificate (Python)
When using L2 construct aws_certificatemanager.DnsValidatedCertificate in Python (CDK 1.18) the construct will synth successfully but will fail to deploy complaining about "Value null at 'certificates'.
Domain I use is registered in Route53 of the same AWS account where I'm deploying this stack
Reproduction Steps
service_record_name='bla.bla.some_domain.com'
# create CNAME DNS record
service_route53_cname = route53.CnameRecord(self,
service_name.capitalize() + tenant_props['tenant_name'].capitalize() + 'SubscriberLbCname',
domain_name=tenant_network.subscriber_public_nlb.load_balancer_dns_name,
zone=tenant_network.zone,
comment=' CNAME record linked to Subscriber LB DNS name',
record_name=service_record_name
)
#create SSL cert
ssl_cert = certificatemanager.DnsValidatedCertificate(self,
service_record_name,
hosted_zone=tenant_network.zone,
domain_name=service_record_name
)
Error Log
1/8 | 5:11:07 PM | CREATE_IN_PROGRESS | AWS::ElasticLoadBalancingV2::ListenerCertificate | BlaListenerSslCert (BlaListenerSslCert) 2/8 | 5:11:07 PM | CREATE_FAILED | AWS::ElasticLoadBalancingV2::ListenerCertificate | BlaListenerSslCert(BlaListenerSslCert) 1 validation error detected: Value null at 'certificates' failed to satisfy constraint: Member must not be null (Service: AmazonElasticLoadBalancingV2; Status Code: 400; Error Code: ValidationError; Request ID: 99b2f2c0-e6df-4379-bf98-c7b3f69f7c59)
Environment
- CLI Version :aws-cli/1.16.100 Python/3.7.2 Darwin/18.5.0 botocore/1.12.90
- Framework Version:1.18
- OS :Mac
- Language :Python
Other
This is :bug: Bug Report
Not an issue. Error reported was for a different construct with almost identical id. Issue was on my side.