sapcc / terraform-provider-ccloud

Terraform provider for Converged Cloud extended OpenStack Services
Mozilla Public License 2.0
11 stars 5 forks source link

TF resource ccloud_gslb_monitor_v1 does not set domain_name property #139

Closed preslav-kalinov closed 1 month ago

preslav-kalinov commented 1 month ago

An issue was identified with the ccloud terraform resource ccloud_gslb_monitor_v1. Specifically, a missing property named domain_name, which Andromeda GSLB supports for overriding the Host/SNI domain name (sets the HTTP Host Header to the backend server for HTTP health check) which is used only for HTTP/S monitors. This is required in order to access a custom endpoint.

The following error was produced when attempting to use the domain_name property:

│ Error: Unsupported argument
│ 
│   on andromeda.tf line 66, in resource "ccloud_gslb_monitor_v1" "andromeda-ccee-monitor":
│   66:   domain_name    = "test-custom-domain.com"
│ 
│ An argument named "domain_name" is not expected here.
╵ 

Andromeda GSLB documentation where the domain_name property is listed: https://github.com/sapcc/andromeda/blob/main/docs/api.md#-monitor

Terraform Version

Terraform v1.5.7 ccloud v1.6.5

Affected Resource(s)

Expected Behavior

The resource _ccloud_gslb_monitorv1 should create an Andromeda GSLB monitor with domain_name property set.

Actual Behavior

The Andromeda GSLB Terraform resource _ccloud_gslb_monitorv1 is not expecting the domain_name property.

Steps to Reproduce

  1. Configure a terraform script to create a monitor through ccloud_gslb_monitor_v1 resource.
  2. terraform apply