Open l2fprod opened 3 years ago
I've added a sleep
between the Redis creation and the virtual endpoint gateway creation:
resource "time_sleep" "wait_for_redis_initialization" {
count = tobool(var.use_vpe) ? 1 : 0
depends_on = [
ibm_database.redis
]
create_duration = "5m"
}
and in ibm_is_virtual_endpoint_gateway:
...
depends_on = [
time_sleep.wait_for_redis_initialization
]
}
this is a workaround
I am seeing the same issue with ICD PostgreSQL DB
Error: Service does not support VPE extensions.
│
│ with module.create_vpc[0].module.vpe_cloud_services.ibm_is_virtual_endpoint_gateway.vpe["postgresql"],
│ on modules/create_vpe/main.tf line 1, in resource "ibm_is_virtual_endpoint_gateway" "vpe":
│ 1: resource "ibm_is_virtual_endpoint_gateway" "vpe" {
@kavya498 We are using the above workaround with time_sleep
set to up to 15m but still seeing the below error. The error is specific to postgresql with cos and kms working
Error: Create Endpoint Gateway failed Service does not support VPE extensions.
│ {
│ "StatusCode": 400,
│ "Headers": {
│ "Cache-Control": [
│ "max-age=0, no-cache, no-store, must-revalidate"
│ ],
│ "Cf-Cache-Status": [
│ "DYNAMIC"
│ ],
│ "Cf-Ray": [
│ "6a090a733e9b4acf-HYD"
│ ],
│ "Content-Length": [
│ "133"
│ ],
│ "Content-Type": [
│ "application/json"
│ ],
│ "Date": [
│ "Tue, 19 Oct 2021 09:39:48 GMT"
│ ],
│ "Expect-Ct": [
│ "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""
│ ],
│ "Expires": [
│ "-1"
│ ],
│ "Pragma": [
│ "no-cache"
│ ],
│ "Server": [
│ "cloudflare"
│ ],
│ "Strict-Transport-Security": [
│ "max-age=31536000; includeSubDomains"
│ ],
│ "Vary": [
│ "Accept-Encoding"
│ ],
│ "X-Content-Type-Options": [
│ "nosniff"
│ ],
│ "X-Request-Id": [
│ "82266ea8-aeaf-4e19-8862-388f4b389079"
│ ],
│ "X-Xss-Protection": [
│ "1; mode=block"
│ ]
│ },
│ "Result": {
│ "errors": [
│ {
│ "code": "not_found",
│ "message": "Service does not support VPE extensions."
│ }
│ ],
│ "trace": "82266ea8-aeaf-4e19-8862-388f4b389079"
│ },
│ "RawResult": null
│ }
│
│
│ with module.create_vpc[0].module.vpe_cloud_services.ibm_is_virtual_endpoint_gateway.vpe["postgresql"],
│ on modules/create_vpe/main.tf line 1, in resource "ibm_is_virtual_endpoint_gateway" "vpe":
│ 1: resource "ibm_is_virtual_endpoint_gateway" "vpe" {
@l2fprod I created this related issue #3503
First run of
terraform apply
fails with:Running it few minutes later, it works
It seems that the ICD Redis database is not ready to have its VPE create right after its creation.
Terraform Version
Terraform Configuration Files