Closed kylem-ibm closed 3 years ago
cc/ @hkantare
Given that infra as code is intended to ensure consistency over deployments having only 1 region work is a major.
@kylem-ibm , Is provider block declared with above region?
provider "ibm"{
region = <region>
}
provider by default targets to us-south
region..
If you are working on other regions, region should be declared in provider block..
Thanks for the quick response @kavya498, region was explicitly set in the following variables:
variable "primary_location" {
type = string
default = "au-syd"
}
variable "cluster_region" {
type = string
default = "au-syd"
}
but was not set in provider. Explicitly setting the region in the provider block solved this for me.
Community Note
Creating
ibm_database.postgres_primary
resource with disk autoscaling settings succeeds inus-south
but fails in other regions (au-syd
,eu-de
,eu-gb
,us-east
).Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
terraform apply
should succeed in all regions.Actual Behavior
terraform apply
fails in any region other thanus-south
Note that the database resource is created, however, autoscaling config is not applied.
Steps to Reproduce
terraform apply
inus-south
regionterraform apply
same config in any other region