C3W2 Assignment2 - Building a Data Lakehouse with AWS Lake Formation and Apache Iceberg - Applying Terraform changes crashes terminal

Hello, I’m trying to apply terraform changes but it seems that the terminal crashes and the error output (error.txt) I’m getting is just this:

Error: creating Glue Connection (de-c3w2a1-rds-connection): operation error Glue: CreateConnection, https response error StatusCode: 400, RequestID: 716a975b-5637-4cba-9173-e634706c8bab, AlreadyExistsException: Connection already exists.

with module.landing_etl.aws_glue_connection.rds_connection,
on modules/landing_etl/glue.tf line 1, in resource “aws_glue_connection” “rds_connection”:
1: resource “aws_glue_connection” “rds_connection” {

The error output is incomplete and I can’t debug the issue. Can someone see if my configuration for transformation job in main.tf and outputs.tf are correctly uncommented?



Hello @brian3190,

If de-c3w2a1-rds-connection already exists you could delete it with aws commands (e.g. aws glue delete-connection --de-c3w2a1-rds-connection. You could try in the AWS console as well, if you go to AWS Glue > connections:

If that doesn’t work and the issue continues please fill out this form. Thanks