aws-ia / terraform-aws-vpc_endpoints

Terraform AWS VPC endpoints module
Apache License 2.0
4 stars 5 forks source link

ipv6_cidr_bloc error in creating security group. #5

Open awsomeinfra opened 1 year ago

awsomeinfra commented 1 year ago

I have a vpc having only ipv4 cidr blocks, this module ideally should pass empty list for ipv6 cidr block as per logic (ipv6_cidr_blocks = data.aws_vpc.selected.ipv6_cidr_block != null ? [data.aws_vpc.selected.ipv6_cidr_block] : null), but it throws below error

Error: "" is not a valid CIDR block: invalid CIDR address: │ │ with module.spoke.module.create_vpc_endpoints["spoke-vpc-2"].aws_security_group_rule.endpoints_allow_ingress_tcp443_from_vpc_cidr[0], │ on .terraform/modules/spoke.create_vpc_endpoints/main.tf line 37, in resource "aws_security_group_rule" "endpoints_allow_ingress_tcp443_from_vpc_cidr": │ 37: ipv6_cidr_blocks = data.aws_vpc.selected.ipv6_cidr_block != null ? [data.aws_vpc.selected.ipv6_cidr_block] : null │

awsomeinfra commented 1 year ago

I have gone through the past issues and found the resolution, but I think there is some isuue when using the code form Terraform repo source "aws-ia/vpc_endpoints/aws". We are still getting the old code from this source.

Cesarsk commented 11 months ago

Can we please merge and create a new version?

jatinp-rackspace commented 5 months ago

Hi @awsomeinfra : How did you get rid of this issue ? Can you provide me more information on it ?