aliyun / terraform-provider-alicloud

Terraform AliCloud provider
https://www.terraform.io/docs/providers/alicloud/
Mozilla Public License 2.0
590 stars 553 forks source link

alicloud_cs_serverless_kubernetes kube_config return config with internal endpoint only #2220

Open Ultrafenrir opened 4 years ago

Ultrafenrir commented 4 years ago

Maybe a bug, maybe i'm doing something wrong but the same works fine with other cluster types.

Terraform Version

0.12.21

Provider Version

1.71.1

Affected Resource(s)

resource alicloud_cs_serverless_kubernetes cluster { depends_on = [alicloud_vpc.vpc, alicloud_vswitch.vsw] name = var.NAME vpc_id = alicloud_vpc.vpc.id vswitch_id = alicloud_vswitch.vsw.id new_nat_gateway = var.NEW_NAT_GATEWAY endpoint_public_access_enabled = true private_zone = false deletion_protection = false kube_config = format("%s/%s", var.CONFIG_DIR, var.KUBE_CONFIG) client_cert = format("%s/%s", var.CONFIG_DIR, var.CLIENT_CERT) client_key = format("%s/%s", var.CONFIG_DIR, var.CLIENT_KEY) cluster_ca_cert = format("%s/%s", var.CONFIG_DIR, var.CA_CERT) }

Expected Behavior

kube_config option return config with public api endpoint

Actual Behavior

kube_config option return config with internal api endpoint

caryyu commented 4 years ago

Duplicated https://github.com/terraform-providers/terraform-provider-alicloud/issues/2291