-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Open
Labels
enhancementRequests to existing resources that expand the functionality or scope.Requests to existing resources that expand the functionality or scope.service/ipamIssues and PRs that pertain to the ipam service.Issues and PRs that pertain to the ipam service.service/vpcIssues and PRs that pertain to the vpc service.Issues and PRs that pertain to the vpc service.
Description
Description
AWS Announced VPC Subnets can get their CIDR from AWS IPAM IP Reservations. I'm not 100% what the implementation will look like but will update this issue as the service features become available publicly.
Based on the blog I believe the following changes need to be made
aws_vpc_ipam_poolneeds to be able to set resource planning to a vpcaws_subnetneeds to specify the cidr block is from an ipam pool id, ip netmask
These values are
- CreateSubnet:
Ipv4IpamPoolId,Ipv4NetmaskLength,Ipv6IpamPoolId,Ipv6NetmaskLength - CreateIpamPool -
SourceResourcewhich is a new nested type: https://github.com/aws/aws-sdk-go-v2/blob/main/service/ec2/types/types.go#L7919
Affected Resource(s) and/or Data Source(s)
- aws_vpc_ipam_pool
- aws_subnet
Potential Terraform Configuration
### ipam pool
resource aws_vpc_ipam_pool main {
source_resource {
resource_id = <>
resource_owner = <> # account owner id
resource_region = <>
// The source resource type.
ResourceType = "vpc" # https://github.com/aws/aws-sdk-go-v2/blob/main/service/ec2/types/enums.go#L4776
}
}
### vpc subnet
```hcl
resource aws_subnet main {
ipv4_ipam_pool_id = ""
ipv6_ipam_pool_id = ""
ipv4_netmask_length = #
ipv6_netmask_length = #
}
### References
_No response_
### Would you like to implement a fix?
None
artem-collectai, kengibous, JakeBarbieur-Zywave, jmoriarity, cruikshj and 47 more
Metadata
Metadata
Assignees
Labels
enhancementRequests to existing resources that expand the functionality or scope.Requests to existing resources that expand the functionality or scope.service/ipamIssues and PRs that pertain to the ipam service.Issues and PRs that pertain to the ipam service.service/vpcIssues and PRs that pertain to the vpc service.Issues and PRs that pertain to the vpc service.