aws / aws/aws-cdk

[route53] Allow addVpc for imported PrivateHostedZone

Open
#10,413 7 comments 15 reactions 0 assignees View on GitHub
@aws-cdk/aws-route53 effort/small feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

Allow something like this so we can import a private hosted zone not generated from the stack but be able to add VPCs to it.

``` javascript
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.

* [ ] :wave: I may be able to implement this feature request
* [ ] :warning: This feature might incur a breaking change

---

This is a :rocket: Feature Request

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the Route53 PrivateHostedZone implementation and the fromPrivateHostedZoneId entry point, then inspect how addVpc handles imported zones; done means an imported private hosted zone can add the supplied VPC without requiring the zone to be created by the stack.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.