Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove VPC CIDR validation in vpc module #63

Closed
maxsxu opened this issue Apr 26, 2022 · 0 comments · Fixed by #65
Closed

Remove VPC CIDR validation in vpc module #63

maxsxu opened this issue Apr 26, 2022 · 0 comments · Fixed by #65
Assignees

Comments

@maxsxu
Copy link
Member

maxsxu commented Apr 26, 2022

Description

A VPC required by customer will trigger an error in the vpc module:

╷
│ Error: Invalid value for variable
│ 
│   on main.tf line 137, in module "vpc":
│  137:   vpc_cidr = local.vpc_cidr
│ 
│ The vpc_cidr must be a 10.x.x.x range with /16 CIDR.
│ 
│ This was checked by the validation rule at .terraform/modules/vpc/modules/vpc/variables.tf:61,3-13.

Our validation rule:

can(regex("^10\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}/16", var.vpc_cidr))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant