Skip to content

tencentcloud_teo_bind_security_template doesn't unbind default site-level security policy to bind the domain to Standalone domain policy #3551

@TC0631-dhermy

Description

@TC0631-dhermy

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.13.2

Affected Resource(s)

  • tencentcloud_teo_bind_security_template

Terraform Configuration Files

resource "tencentcloud_teo_bind_security_template" "unbind-default" {
  template_id = "@ZoneLevel@domain"
  zone_id     = data.tencentcloud_teo_zones.my_zone.zones[0].zone_id
  entity      = "origin-${terraform.workspace}.${var.domain_name}"

  depends_on = [null_resource.wait_for_domain_online]
}

Expected Behavior

The site-policy attached by default when a application_domain is created should be unbinded, and a Standalone domain should be attached instead

Actual Behavior

Nothing happen. The resource on terraform appears to be created only but nothing on the console.
However, If I delete the resource, or if I error it by replacing the template_id by somehting not supported,
then the domain get switched to Standalone domain protection as it should be...

Steps to Reproduce

  1. terraform apply

References

(https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/latest/docs/resources/teo_bind_security_template)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions