Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
mattJsonar authored Jul 11, 2024
1 parent 10d4665 commit 412713a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/onboard-aws-rds-postgresql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 412713a

Please sign in to comment.