Trying to create an DB and it is throwing this error

0

Cannot create RDS instance

aws rds create-db-instance --db-instance-identifier odm_instance
--engine postgres --db-instance-class db.t3.large --allocated-storage 250
--master-username odmAdmin --master-user-password password
--db-name rds_odm

An error occurred (InvalidSubnet) when calling the CreateDBInstance operation: No default subnet detected in VPC. Please contact AWS Support to recreate default Subnets.

Running , I can see it is running...: kubectl cluster-info Kubernetes control plane is running at https://623AF17A6BE5700DF747F621E40290BA.gr7.us-east-1.eks.amazonaws.com CoreDNS is running at https://623AF17A6BE5700DF747F621E40290BA.gr7.us-east-1.eks.amazonaws.com/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

2 Answers
0

Hi,

could you try adding the -vpc-security-group-ids setting? It should help to associate the RDS with the VPC where the datasource should be created.(https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/create-db-instance.html)

Hope it helps ;)

profile picture
EXPERT
answered a year ago
0

As per the error message, you can recreate your default subnets by following these instructions.

profile pictureAWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions