1) make sure everything is checked in.
2) amplify cehckout
3) delete the sqsquery function
4) amplify checkout
5) amplify push -y
6) got to SQS and find the new queue
7) set it's "Default visibility timeout to" at least 900 seconds (greater than the lambda).
8) set the secret DB_PASSWORD on sqsquery function
8) amplify push -y
To get this to work I had to do the following.
1) make sure everything is checked in. 2) amplify cehckout
3) delete the sqsquery function
4) amplify checkout
5) amplify push -y
6) got to SQS and find the new queue
7) set it's "Default visibility timeout to" at least 900 seconds (greater than the lambda).
8) set the secret DB_PASSWORD on sqsquery function
8) amplify push -y
Good luck future me.