trustgrid / terraform-provider-tg

Mozilla Public License 2.0
2 stars 1 forks source link

tg_ztna_gateway_config.host only accepts IP but should allow FQDN #69

Closed Deadtired78 closed 1 year ago

Deadtired78 commented 1 year ago

Host should allow fqdn too just like the wg_endpoint

│ Error: expected host to contain a valid IPv4 address, got: gw.boris.tgdemo.net
│ 
│   with module.demo_environment.tg_ztna_gateway_config.cluster,
│   on ../../../demo-sandbox-launcher/terraform/modules/demo_setup/tg-gw.tf line 46, in resource "tg_ztna_gateway_config" "cluster":
│   46:     host = "gw.${module.appgw_setup.tg_cert.fqdn}"
│ 
╵
Deadtired78 commented 1 year ago

Example raw config of it manually configured

  "apigw": {
    "wireguardEndpoint": "wg.boris.tgdemo.net",
    "port": 443,
    "wireguardPort": 51820,
    "host": "gw.boris.tgdemo.net",
    "cert": "boris.tgdemo.net",
    "wireguardEnabled": true,
    "enabled": false
  },