Skip to content

Bug: data source tencentcloud_cos_buckets fails with "Invalid address to set" when redirect_all_requests_to is present #3747

Description

@lt-hu

version

  1. terraform: 1.14.3
  2. providers.tencentcloud: 1.82.57

Affected Resource(s)

data "tencentcloud_cos_buckets"

Terraform Configuration Files

terraform {
  required_version = ">= 1.14.3"
  required_providers {
    tencentcloud = {
      source  = "tencentcloudstack/tencentcloud"
      version = ">=1.82.57"
    }
  }
}
provider "tencentcloud" {
  region     = ""
  secret_id  = ""
  secret_key = ""
}

data "tencentcloud_cos_buckets" "bucket" {
  bucket_prefix = "xxx"
}
output "temp" {
  value = data.tencentcloud_cos_buckets.bucket
}

问题描述

我使用某个cos bucket存储静态网站。

在cos的web管理页面修改静态网站相关的配置后,使用data "tencentcloud_cos_buckets"查询bucket失败。

https://gist.github.com/lt-hu/530a1a9910347acf35f81ac8f843d434

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions