Skip to content

Commit

Permalink
oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Sep 18, 2024
1 parent a2ae407 commit 80b4634
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions stack/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,15 @@
opts=pulumi.ResourceOptions(depends_on=[users]),
)

sql_instance_url_with_asyncpg = pulumi.Output.all(
sql_instance_url_with_asyncpg = pulumi.Output.concat(
"postgresql+asyncpg://",
db_name,
":",
pulumi.Config("db").require_secret("db-password"),
database.instance,
).apply(
lambda args: f"postgresql+asyncpg://{args[0]}:{args[1]}@{args[2].public_ip_address}/{args[0]}"
"@",
instance.public_ip_address,
"/",
db_name,
)

sql_instance_url = pulumi.Output.concat(
Expand Down

0 comments on commit 80b4634

Please sign in to comment.