Skip to content
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.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Region kr-seo is not supported #1831

Closed
logdnalf opened this issue Aug 26, 2020 · 3 comments
Closed

Region kr-seo is not supported #1831

logdnalf opened this issue Aug 26, 2020 · 3 comments

Comments

@logdnalf
Copy link

logdnalf commented Aug 26, 2020

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

./terraform -v
Terraform v0.12.24
+ provider.ibm v1.10.0

Affected Resource(s)

ibm_database

Terraform Configuration Files

data ibm_resource_group "default" {
  name = "Default"
}

// https://cloud.ibm.com/docs/overview?topic=overview-locations&locale=en
variable "region" {
  type    = string
  default = "kr-seo"
}

variable "location" {
  type    = string
  default = "seo01"
}

provider "ibm" {
  ibmcloud_api_key      = var.ibmcloud_api_key
  iaas_classic_username = var.iaas_classic_username
  iaas_classic_api_key  = var.iaas_classic_api_key
  region                = var.region
}

resource "ibm_database" "seo2" {
  name                         = "kr-seo2.prod.ibm"
  plan                         = "standard"
  location                     = var.location
  service                      = "databases-for-etcd"
  resource_group_id            = data.ibm_resource_group.default.id
  service_endpoints            = "private" // Only private endpoint
  members_cpu_allocation_count = 9         // 9 CPU cores total
  members_memory_allocation_mb = 6144      // Multiple of 384MB and >=3072MB
  members_disk_allocation_mb   = 61440     // Multiple of 3072MB and >=61440
}

Expected Behavior

An EtcD database in seo1 should be created.

Actual Behavior

Terraform fails with the following error:

Error: Error getting database client settings: Error occured while configuring IBM Cloud Database Services: "ServiceEndpointDoesnotExist: ICD Service endpoint doesn't exist for region: \"kr-seo\""

Steps to Reproduce

  1. terraform apply
@logdnalf
Copy link
Author

It seems the problem is that seo01 is not listed here:

github.com/IBM-Cloud/bluemix-go/endpoints/endpoints.go

@logdnalf
Copy link
Author

IBM-Cloud/bluemix-go#241 should fix this, I believe.

@logdnalf
Copy link
Author

My PR was merged, I used a local build using this PR and checked that it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant