Jarvis
Jarvis

Reputation: 21

Cannot Enable Data API on Aurora Serverless

We're trying to enable Data API for our Aurora Serverless Cluster which has been set up to be in our private subnets in our VPC. We've tried enabling it via the console (i.e. Modify > Select Data API > Apply Immediately). There weren't any errors on after submitting, but when we get back to the "Modify" page, the "Data API" checkbox is still unselected. We have also tried enabling Data API as described on the documentation https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html , but the response still shows us that the HttpEndpointEnabled is still false.

My guess is that this could be related to Private Subnets or Security Groups. Any feedback is appreciated!

$ aws rds modify-db-cluster --db-cluster-identifier our-database --enable-http-endpoint
{
    "DBCluster": {
        "Capacity": 8, 
        "MasterUsername": "admin", 
        "HttpEndpointEnabled": false, 
        "ReadReplicaIdentifiers": [], 
        "VpcSecurityGroups": [
            {
                "Status": "active", 
                "VpcSecurityGroupId": "sg-0a66b09ade97573f0"
            }
        ], 

The database was created with CloudFormation if that matters

Upvotes: 2

Views: 2444

Answers (1)

john
john

Reputation: 2544

Data API is available only for serverless db. Make sure you have selected "serverless" option while creating database.

I had the same problem when I was trying to create aurora-postgresql variant that doesn't have data api option. Then I selected aurora-mysql with serverless option and aws gave me option to enable http endpoint.

Upvotes: 1

Related Questions