You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have provided a custom CIDR block and Subnet range for our application but when we executed the code its not considering all the subnet details it is randomly providing the Subnet IP Ips during the plan some are from the given list, and some are auto generated.
Initially we identified that we need to use the cidrsubnet terraform function for calculating the subnets and used the terraform console for the given cidr_block
e.g. cidrsubnet("10.90.0.0/16", 5, 0) and we generated the required subnet list,
But while performing the terraform plan. details are random as mentioned.
Can you please let us know whats the issue here ? For some reason the IP ranges which we have provided is not getting considered and random values are been generated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
We have provided a custom CIDR block and Subnet range for our application but when we executed the code its not considering all the subnet details it is randomly providing the Subnet IP Ips during the plan some are from the given list, and some are auto generated.
Initially we identified that we need to use the cidrsubnet terraform function for calculating the subnets and used the terraform console for the given cidr_block
e.g. cidrsubnet("10.90.0.0/16", 5, 0) and we generated the required subnet list,
But while performing the terraform plan. details are random as mentioned.
Can you please let us know whats the issue here ? For some reason the IP ranges which we have provided is not getting considered and random values are been generated.
Sample inputs
inputs = {
vpc_name = "kuber_private_vpc"
cidr_block = "10.90.0.0/16"
num_nat_gateways = 3
num_availability_zones = 3
public_subnet_cidr_blocks = {
"public-application-AZ-0" = "10.90.0.0/21"
"public-application-AZ-1" = "10.90.8.0/21"
"public-application-AZ-2" = "10.90.16.0/21"
}
private_app_subnet_cidr_blocks = {
"private-application-AZ-0" = "10.90.24.0/21"
"private-application-AZ-1" = "10.90.32.0/21"
"private-application-AZ-2" = "10.90.40.0/21"
"private-cache-AZ-0" = "10.90.48.0/21"
"private-cache-AZ-1" = "10.90.56.0/21"
"private-cache-AZ-2" = "10.90.64.0/21"
"private-databse-AZ-0" = "10.90.72.0/21"
"private-databse-AZ-1" = "10.90.80.0/21"
"private-databse-AZ-2" = "10.90.88.0/21"
}
custom_tags = {
"project" = "test"
"application" = "test-application"
"resource-type" = "network"
}
nat_gateway_custom_tags = {
"project" = "test"
"application" = "test-application"
"resource-type" = "network"
}
}
Tracked in ticket #109792
Beta Was this translation helpful? Give feedback.
All reactions