aws / aws/aws-cdk

@aws-cdk/aws-ec2-alpha: support availability zone id in SubnetV2

Open
#35,242 2 comments 1 reaction 0 assignees View on GitHub
aws-cdk-lib effort/medium feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

we should support specifying the availability zone id in SubnetV2 as opposed to just the availability zone name

this is exposed in the underlying L1 cfn constructs

### Use Case

use case is fine grained control over subnets using az id instead of az name to account for aws services that are only available in certain azs

### Proposed Solution

_No response_

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### AWS CDK Library version (aws-cdk-lib)

2.210.0

### AWS CDK CLI version

2.1024.0

### Environment details (OS name and version, etc.)

amazon linux 2

related: https://github.com/aws/aws-cdk/issues/5927

Contributor guide

Open the contributing guide

Research direction

Locate the SubnetV2 entry point and inspect the underlying L1 CloudFormation construct, where availability zone name support is exposed. Add support for specifying an availability zone ID, then verify that a synthesized subnet uses the requested ID and that existing name-based behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure, networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.