From 412713ae7b7c62d860e2c5daf9ec06f796b991af Mon Sep 17 00:00:00 2001 From: Matt Gill Date: Wed, 10 Jul 2024 19:20:42 -0700 Subject: [PATCH] Update main.tf --- examples/onboard-aws-rds-postgresql/main.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/onboard-aws-rds-postgresql/main.tf b/examples/onboard-aws-rds-postgresql/main.tf index f564ad4..29a5934 100644 --- a/examples/onboard-aws-rds-postgresql/main.tf +++ b/examples/onboard-aws-rds-postgresql/main.tf @@ -49,15 +49,15 @@ module "aws-default-account-asset" { # 2. Run shell script locally to create extension and role on the newly created # postgres instance. resource "terraform_data" "configure_database" { - depends_on = [module.aws-rds-postgresql] + depends_on = [module.aws-rds-postgresql-1] provisioner "local-exec" { environment = { - PGHOST = module.aws-rds-postgresql.postgres-instance.address + PGHOST = module.aws-rds-postgresql-1.postgres-instance.address PGUSER = "admin" PGPASSWORD = "abcd1234" - PGPORT = module.aws-rds-postgresql.postgres-instance.port - PGDATABASE = module.aws-rds-postgresql.postgres-instance.db_name + PGPORT = module.aws-rds-postgresql-1.postgres-instance.port + PGDATABASE = module.aws-rds-postgresql-1.postgres-instance.db_name } command = "./configure_database.sh"