I have a Lambda function that is in VPC-A and Subnet 1A and 2A. I want to move it to Subnet 1b and 2B.
The command below is giving error:
aws rds modify-db-subnet-group --db-subnet-group-name "XXXX" --subnet-ids "XXX" "YYY" "ZZZ"
The error is:
Some of the subnets to be deleted are currently in use: subnet-ABCD, subnet-WXYZ (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterValue; Request ID: d636a255-9cfe-4f1c-89de-77ebcb1b9af3)
Please help.