Week 4 Lab Assignment


After I type yes after terraform apply in bash. I get this error
module.etl.aws_glue_catalog_database.ml_database: Creating…

│ Error: creating Glue Catalog Database (de-c1w4-ml-db): operation error Glue: CreateDatabase, https response error StatusCode: 400, RequestID: f832fca2-c78a-4552-b527-b7226faf3366, AlreadyExistsException: Database already exists.

│ with module.etl.aws_glue_catalog_database.ml_database,
│ on modules/etl/glue.tf line 1, in resource “aws_glue_catalog_database” “ml_database”:
│ 1: resource “aws_glue_catalog_database” “ml_database” {

Hello @Kunal_Gurung
Please, go to the AWS glue console by searching glue in the AWS console, select databases from the menu on the left. There, you can see the database you are getting the database already exists message for. Please, delete this database and try terraform apply again.