Closed
Description
Subdomains with a leading wildcard are rejected by CDK:
jsii.errors.JSIIError: Invalid domain: *.example.com. Valid characters: A-Z, a-z, 0-9, _, -, .
The Route 53 documentation indicates a leading wildcard is supported.
Reproduction Steps
This Python code errors during synthesis.
allow_list = aws_route53resolver.FirewallDomainList(
self, 'AllowList',
domains=aws_route53resolver.FirewallDomains.from_list(['*.example.com'])
)
What did you expect to happen?
I get a Firewall Domain List which includes a domain with a wildcard.
What actually happened?
jsii.errors.JSIIError: Invalid domain: *.example.com. Valid characters: A-Z, a-z, 0-9, _, -, .
Environment
- CDK CLI Version : 1.122.0 (build ae09c16)
- Framework Version:
- Node.js Version: v12.16.2
- OS : Amazon Linux 2
- Language (Version): Python (3.7.10)
This is 🐛 Bug Report
Activity