cloudposse/terraform-aws-rds-cluster

enable_http_endpoint not working for serverlessv2 configurations

hragbalian opened this issue · 1 comments

Describe the Bug

When instance_type is "db.serverless" (for V2 serverless) the engine_mode does not accept the value "serverless", but this value is required to enable the Data API via enable_http_endpoint = true. As a result, the co-condition only applies for serverless v1.

Expected Behavior

That

...
instance_type` = "db.serverless"
enable_http_endpoint = true
...

would enable the Data API for serverless V2

Steps to Reproduce

...
instance_type` = "db.serverless"
enable_http_endpoint = true
...

Screenshots

No response

Environment

OSX, M1

Additional Context

No response

+1 for this bug. I can't create a serverlessv2 with the data API enabled until this bug is fixed.

For serverlessv2 the engine_mode=provisioned has to be set. It won't except serverless.