We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Spoke Peering import/export of route configurations do not work in the networking stage due to incorrect definition of the variable.
This is the routes_config that is passed to net-vpc-peering module
module "peering-dev" { count = local.spoke_connection == "peering" ? 1 : 0 source = "../../../modules/net-vpc-peering" prefix = "dev-peering-0" local_network = module.dev-spoke-vpc.self_link peer_network = module.landing-vpc.self_link routes_config = var.spoke_configs.peering_configs.dev }
The var peering_configs.dev is defined in this manner
dev = optional(object({ export = optional(bool, true) import = optional(bool, true) public_export = optional(bool) public_import = optional(bool) }), {})
This does not work because module net-vpc-peering expects this
type = object({ local = optional(object({ export = optional(bool, true) import = optional(bool, true) public_export = optional(bool) public_import = optional(bool) }), {}) peer = optional(object({ export = optional(bool, true) import = optional(bool, true) public_export = optional(bool) public_import = optional(bool) }), {}) })
Current behavior - this route config configuration even if set, has no effect.
The text was updated successfully, but these errors were encountered:
Good catch, thanks for reporting!
Sorry, something went wrong.
ludoo
Successfully merging a pull request may close this issue.
Describe the bug
Spoke Peering import/export of route configurations do not work in the networking stage due to incorrect definition of the variable.
This is the routes_config that is passed to net-vpc-peering module
The var peering_configs.dev is defined in this manner
This does not work because module net-vpc-peering expects this
Current behavior - this route config configuration even if set, has no effect.
The text was updated successfully, but these errors were encountered: