terraform-google-modules/terraform-google-vpn

Add "enable" for BGP sessions

ivayloivanov388 opened this issue · 4 comments

TL;DR

Add "enable" option for BGP sessions related to the latest GCP provider 4.7.0

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_router_peer

enable - (Optional) The status of the BGP peer connection. If set to false, any active session with the peer is terminated and all associated routing information is removed. If set to true, the peer connection can be established with routing information. The default is true.

Terraform Resources

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_router_peer

Detailed design

variables.tf:

variable "tunnels" {
    bgp_peer_options = object({
      admin_enabled       = bool



main.tf: 

resource "google_compute_router_peer" "bgp_peer" {
  enable          = each.value.bgp_peer_options.admin_enabled

Additional information

I couldn't generate a PR for some resaon

remote: Permission to terraform-google-modules/terraform-google-vpn.git denied to ivayloivanov388.
fatal: unable to access 'https://github.com/terraform-google-modules/terraform-google-vpn.git/': The requested URL returned error: 403

We would welcome a pull request.

As with all open source projects, you should fork and generate a pull request from your fork: https://gist.github.com/Chaser324/ce0505fbed06b947d962

bump
Add "enable" for BGP sessions #69 #71

Hi,

PR was created

Br,

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days