adeleporte / terraform-provider-hcx

Apache License 2.0
4 stars 7 forks source link

Empty principal name error while site mapping #11

Open Aj1991ay opened 2 years ago

Aj1991ay commented 2 years ago

Hi, I am trying to map my onprem site with vmc cloud and it fails with error “Empty principal name not allowed” . However I am passing all the details but still not able to rectify the issue

Aj1991ay commented 2 years ago

terraform { required_providers { hcx = { source = "adeleporte/hcx" } } }

provider "hcx" { hcx = var.hcx_url admin_username = var.hcx_admin_username admin_password = var.hcx_admin_password }

resource "hcx_site_pairing" "auto_hcx_1" { url = var.remote_hcx_url username = var.remote_hcx_username password = var.remote_hcx_password }

output "hcx_site_pairing_site1" { value = hcx_site_pairing.auto_hcx_1.id }


Error: body: <?xml version='1.0' encoding='UTF-8'?>timestamp2022-07-05 17:11:49.961 UTCstatus401s0:RequestFailed</faultcode><faultstring>Empty principal name is not allowed</faultstring></S:Fault></S:Body></S:Envelope>path/hybridity/api/sessions

with hcx_site_pairing.auto_hcx_1, on main.tf line 15, in resource "hcx_site_pairing" "auto_hcx_1": 15: resource "hcx_site_pairing" "auto_hcx_1" {