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

已提问 1 年前1433 查看次数
2 回答
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
专家
已回答 1 年前
0

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

profile pictureAWS
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则