You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For tencentcloud_clb_listener_rule domain can't be regular expression or wildcards even though such config can be added on Tencen console manually
#3288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. For# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorpresource"tencentcloud_clb_instance""public" {
clb_name="test-123"network_type="OPEN"vpc_id=var.cloud_vpc_idsnat_pro=trueload_balancer_pass_to_target=truesnat_ips {
subnet_id=var.cloud_subnet_id
}
}
resource"tencentcloud_clb_listener""https" {
clb_id=tencentcloud_clb_instance.public.idlistener_name=join("-", ["https", var.pub_subdomain])
protocol="HTTPS"port=443certificate_id=var.ssl_idcertificate_ssl_mode="UNIDIRECTIONAL"
}
resource"tencentcloud_clb_listener_rule""https_rule" {
listener_id=tencentcloud_clb_listener.https.listener_idclb_id=tencentcloud_clb_instance.public.iddomain=join(".", ["*", var.pub_domain])
url="/"certificate_ssl_mode="UNIDIRECTIONAL"certificate_id=var.ssl_idtarget_type="NODE"health_check_type="TCP"
}
Debug Output
Panic Output
Expected Behavior
CLB rules are added to the created CLB
Actual Behavior
I am getting an error that the wildcard can't be used
"Error: [TencentCloudSDKError] Code=InvalidParameterValue, Message=HttpCheckDomain:*.example.io can't be regular expression or wildcards."
If I add such a CLB rule manually on the Tencent console with a wildcard, it works, but when I try to do it from the terraform code, it does not work.
The text was updated successfully, but these errors were encountered:
andre1704
changed the title
For tencentcloud_clb_listener_rule domain can't be regular expression or wildcards even thou such config can be added on Tencen console manually
For tencentcloud_clb_listener_rule domain can't be regular expression or wildcards even though such config can be added on Tencen console manually
Apr 10, 2025
Community Note
Terraform Version
terraform -v
Terraform v1.11.1
on linux_amd64
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
CLB rules are added to the created CLB
Actual Behavior
I am getting an error that the wildcard can't be used
"Error: [TencentCloudSDKError] Code=InvalidParameterValue, Message=HttpCheckDomain:*.example.io can't be regular expression or wildcards."
If I add such a CLB rule manually on the Tencent console with a wildcard, it works, but when I try to do it from the terraform code, it does not work.
Steps to Reproduce
terraform apply
with config:
You will get an error
Code=InvalidParameterValue, Message=HttpCheckDomain:*.example.io can't be regular expression or wildcards.
Here is a workaround to the bug:
2.
terraform apply
with different configAfter this listener_rule will be applied once again do
terraform apply
with different settingsImportant Factoids
References
The text was updated successfully, but these errors were encountered: