aws-cloudformation / aws-cloudformation-resource-providers-rds

The CloudFormation Resource Provider Package For Amazon Relational Database Service
https://aws.amazon.com/rds/
Apache License 2.0
26 stars 42 forks source link

[DBCluster] Support EnableHttpEndpoint for Aurora Postgres engine to support Data Api V2. #496

Closed moataz-mhmd closed 7 months ago

moataz-mhmd commented 8 months ago

Description of changes: Onboarding DBCluster to Data API version 2 feature, In the create scenario, We can enable it directly by including it in the createDBCluster API call. However, it is not supported in the RestoreDbClusterToPointInTime, RestoreDbClusterFromSnapshot, and ModifyDbCluster operations. Therefore, an additional call is necessary to enable or disable the HTTP endpoint.

Previously, the RDS webservice would disregard the false flag in the HttpEndpoint for engines that do not support the HTTP endpoint. As a result, we now ignore the unsupported fault when disabling the HTTP endpoint for the sake of backward compatibility.

Ref: https://aws.amazon.com/blogs/database/introducing-the-data-api-for-amazon-aurora-serverless-v2-and-amazon-aurora-provisioned-clusters/

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.