{"action":"created","issue":{"url":"https://api.github.com/repos/AviatrixSystems/terraform-provider-aviatrix/issues/78","repository_url":"https://api.github.com/repos/AviatrixSystems/terraform-provider-aviatrix","labels_url":"https://api.github.com/repos/AviatrixSystems/terraform-provider-aviatrix/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/AviatrixSystems/terraform-provider-aviatrix/issues/78/comments","events_url":"https://api.github.com/repos/AviatrixSystems/terraform-provider-aviatrix/issues/78/events","html_url":"https://github.com/AviatrixSystems/terraform-provider-aviatrix/issues/78","id":377082606,"node_id":"MDU6SXNzdWUzNzcwODI2MDY=","number":78,"title":"Terraform apply error when creating gateway, \" Failed to create peering HA: Peer HA is not supported on VPN gateway\"","user":{"login":"infa-apatel","id":39536635,"node_id":"MDQ6VXNlcjM5NTM2NjM1","avatar_url":"https://avatars3.githubusercontent.com/u/39536635?v=4","gravatar_id":"","url":"https://api.github.com/users/infa-apatel","html_url":"https://github.com/infa-apatel","followers_url":"https://api.github.com/users/infa-apatel/followers","following_url":"https://api.github.com/users/infa-apatel/following{/other_user}","gists_url":"https://api.github.com/users/infa-apatel/gists{/gist_id}","starred_url":"https://api.github.com/users/infa-apatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infa-apatel/subscriptions","organizations_url":"https://api.github.com/users/infa-apatel/orgs","repos_url":"https://api.github.com/users/infa-apatel/repos","events_url":"https://api.github.com/users/infa-apatel/events{/privacy}","received_events_url":"https://api.github.com/users/infa-apatel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-03T18:49:56Z","updated_at":"2018-11-03T19:02:24Z","closed_at":null,"author_association":"NONE","body":"Hi Team, \r\n\r\nWe are trying to create aviatrix gateway using terraform.  We also are trying to create HA peering gateway by specifying public_subnet and zone values.  You documentation says that this should be supported.  But, when I apply the changes I get an error:\r\n\r\n **Failed to create peering HA: Peer HA is not supported on VPN gateway\"\r\n\r\nError: Error applying plan:\r\n\r\n1 error(s) occurred:\r\n\r\n* module.vpc.aviatrix_gateway.aviatrix_vpn_gateway: 1 error(s) occurred:\r\n\r\n* aviatrix_gateway.aviatrix_vpn_gateway: Failed to create peering HA: Peer HA is not supported on VPN gateway**\r\n\r\nHere are the values we are passing:\r\n\r\n**module.vpc.aviatrix_gateway.aviatrix_vpn_gateway: Creating...\r\n  account_name:                \"\" => \"<ACCOUNT_NAME>\"\r\n  backup_public_ip:            \"\" => \"<computed>\"\r\n  cidr:                        \"\" => \"192.168.43.0/24\"\r\n  cloud_instance_id:           \"\" => \"<computed>\"\r\n  cloud_type:                  \"\" => \"1\"\r\n  cloudn_bkup_gateway_inst_id: \"\" => \"<computed>\"\r\n  elb_name:                    \"\" => \"<ELB_NAME>\"\r\n  enable_elb:                  \"\" => \"yes\"\r\n  gw_name:                     \"\" => \"<GATE_WAY_NAME>\"\r\n  public_dns_server:           \"\" => \"<computed>\"\r\n  public_ip:                   \"\" => \"<computed>\"\r\n  public_subnet:               \"\" => \"<SUBNET_INFO_FOR_ZONE_B>\"\r\n  saml_enabled:                \"\" => \"yes\"\r\n  security_group_id:           \"\" => \"<computed>\"\r\n  split_tunnel:                \"\" => \"yes\"\r\n  vpc_id:                      \"\" => \"<VPC_ID>\"\r\n  vpc_net:                     \"\" => \"<SUBNET_INFO_FOR_ZONE_A>\"\r\n  vpc_reg:                     \"\" => \"us-west-2\"\r\n  vpc_size:                    \"\" => \"t2.micro\"\r\n  vpn_access:                  \"\" => \"yes\"\r\n  zone:                        \"\" => \"aws_subnet.public_b.availability_zone\"**\r\n"},"comment":{"url":"https://api.github.com/repos/AviatrixSystems/terraform-provider-aviatrix/issues/comments/435612782","html_url":"https://github.com/AviatrixSystems/terraform-provider-aviatrix/issues/78#issuecomment-435612782","issue_url":"https://api.github.com/repos/AviatrixSystems/terraform-provider-aviatrix/issues/78","id":435612782,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTYxMjc4Mg==","user":{"login":"infa-apatel","id":39536635,"node_id":"MDQ6VXNlcjM5NTM2NjM1","avatar_url":"https://avatars3.githubusercontent.com/u/39536635?v=4","gravatar_id":"","url":"https://api.github.com/users/infa-apatel","html_url":"https://github.com/infa-apatel","followers_url":"https://api.github.com/users/infa-apatel/followers","following_url":"https://api.github.com/users/infa-apatel/following{/other_user}","gists_url":"https://api.github.com/users/infa-apatel/gists{/gist_id}","starred_url":"https://api.github.com/users/infa-apatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infa-apatel/subscriptions","organizations_url":"https://api.github.com/users/infa-apatel/orgs","repos_url":"https://api.github.com/users/infa-apatel/repos","events_url":"https://api.github.com/users/infa-apatel/events{/privacy}","received_events_url":"https://api.github.com/users/infa-apatel/received_events","type":"User","site_admin":false},"created_at":"2018-11-03T19:02:24Z","updated_at":"2018-11-03T19:02:24Z","author_association":"NONE","body":"NOTE:  There is also one more bug:\r\n\r\n1) If you update an existing gateway that with public_subnet and zone, it doesn't create the HA peering gateway.  But it does end up updating the information related to public_subnet and zone for the existing gateway. \r\n\r\n2) now when you run terraform destory, it will fail trying to delete the peering gateway which it never created.. but, it thinks that it has a gateway because the update was successful in updating the public subnet and zone info.  \r\n\r\n"}}
{"actor":{"display_login":"infa-apatel"}}