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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南