-
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.needs-triageWaiting for first response or review from a maintainer.Waiting for first response or review from a maintainer.service/vpcIssues and PRs that pertain to the vpc service.Issues and PRs that pertain to the vpc service.
Description
Description
There appears to be no current way in this provider to grab the Ipv6CidrBlockAssociationSet on a vpc. It should be relatively straight forward to grab those similarly to how it's done for ipv4 with cidr_block_associations.
ipv6_cidr_block only grabs the first one in a vpc, which doesn't work for those with more than 1.
Affected Resource(s) or Data Source(s)
aws_vpc
Potential Terraform Configuration
locals {
cidrs = data.aws_vpc.main.ipv6_cidr_block_associations[*].ipv6_cidr_block
}
References
I can't seem to find any documentation showing examples of even 1 ipv6 range associated.
https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpcs.html
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html
Here's some example output from me running the command:
"Ipv6CidrBlockAssociationSet": [
{
"AssociationId": "vpc-cidr-assoc-012345",
"Ipv6CidrBlock": "2600:1f21::/56",
"Ipv6CidrBlockState": {
"State": "associated"
},
"NetworkBorderGroup": "us-east-1",
"Ipv6Pool": "IPAM Managed",
"Ipv6AddressAttribute": "public",
"IpSource": "amazon"
},
{
"AssociationId": "vpc-cidr-assoc-56789",
"Ipv6CidrBlock": "2600:1f20::/56",
"Ipv6CidrBlockState": {
"State": "associated"
},
"NetworkBorderGroup": "us-east-1",
"Ipv6Pool": "IPAM Managed",
"Ipv6AddressAttribute": "public",
"IpSource": "amazon"
}
],
Would you like to implement the enhancement?
No
bryceml, kinseecampbell, fburk-nexio and lmcnatt
Metadata
Metadata
Assignees
Labels
enhancementRequests to existing resources that expand the functionality or scope.Requests to existing resources that expand the functionality or scope.needs-triageWaiting for first response or review from a maintainer.Waiting for first response or review from a maintainer.service/vpcIssues and PRs that pertain to the vpc service.Issues and PRs that pertain to the vpc service.