[route53] Allow addVpc for imported PrivateHostedZone
See original GitHub issueAllow something like this so we can import a private hosted zone not generated from the stack but be able to add VPCs to it.
const hostedZoneId = 'Z43243432432'
PrivateHostedZone.fromPrivateHostedZoneId(this, `R53PrivateZone-${hostedZoneId}`, hostedZoneId).addVpc(vpc);
Use Case
We have a stack that generates our DNS topology. The DNS topology has hosted zones which I would like to subscribe to when I generate a VPC from a stack i own.
- 👋 I may be able to implement this feature request
- ⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Associating more VPCs with a private hosted zone
You can use the Amazon Route 53 console to associate more VPCs with a private hosted zone if you created the hosted zone...
Read more >aws-cdk.aws-route53 - PyPI
To add a private hosted zone, use PrivateHostedZone . Note that enableDnsHostnames and enableDnsSupport must have been enabled for the VPC you're configuring ......
Read more >AWS Amazon Route 53 : Private Hosted Zone - 2020
This allows us to use custom DNS names for our internal resources without exposing the names or IP addresses to the public Internet....
Read more >aws-cdk/aws-route53/README.md - UNPKG
30, import * as route53 from '@aws-cdk/aws-route53';. 31. 32, const vpc = new ec2.Vpc(this, 'VPC');. 33. 34, const zone = new route53.PrivateHostedZone(this ...
Read more >@aws-cdk/aws-route53 - npm
declare const vpc: ec2.Vpc; const zone = new route53.PrivateHostedZone(this, 'HostedZone', { zoneName: 'fully.qualified.domain.com', vpc, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1
We’re facing the same issue. We’re using Golang SDK and create the private hosted zone using service discovery (
awsservicediscovery.NewPrivateDnsNamespace
). That creates the private hosted zone but we’re unable to add another VPC to the hosted zone, as lookup only returns IPrivateHostedZone without the method to add the VPCs.