Intro to Data Eng: Week 4 Lab 3 Vector Database error

Hello @Egonzalez,

Sorry for the inconvenience, the terminal crashed to me as well. There are two potential reasons and one is existing resources, the other could be bad configuration files for terraform init/plan. I had to delete the terraform folder and use get latest version to proceed (check this post since others had the same issue and hawraa explains 100%.

Aferwards to stop terraform apply from crashing you should instead use terraform apply -no-color 2> errors.txt and check errors.txt file for existing resources. Then delete them:

  1. rds connection

  1. glue role

  1. ml database

Since the terminal crashed again you need to use source scripts/setup.sh to load the terraform variables before you go to terraform folder. Then run the terraform commands as usual and terraform apply -no-color 2> errors.txt to find more resources:

  1. The second time you might also need to delete the crawler

The password that you used is probably the issue that you can’t connect. I got that error and used ctr+c to password (e.g. “p3VJhQmilAY”)without the quotes or spaces (p3VJhQmilAY) and ctr+v in the empty space. Hope it helps