Skip to content

Commit

Permalink
f: depends
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjjung committed Dec 16, 2024
1 parent bb4c079 commit 05d3a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tb_pulumi/rds.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def __init__(
port = SERVICE_PORTS.get(engine, 5432)
inst_addrs = [instance.address for instance in instances]
load_balancer_ips = pulumi.Output.all(*inst_addrs).apply(
lambda addresses: [socket.gethostbyname(addr) for addr in addresses]
lambda addresses: ','.join([socket.gethostbyname(addr) for addr in addresses])
)
pulumi.info(f'LOAD BALANCER IPS: {load_balancer_ips}')
load_balancer = tb_pulumi.ec2.NetworkLoadBalancer(
Expand All @@ -424,7 +424,7 @@ def __init__(
target_port=port,
ingress_cidrs=[vpc_cidr],
internal=True,
ips=load_balancer_ips,
ips=load_balancer_ips.split(','),
security_group_description=f'Allow database traffic for {name}',
opts=pulumi.ResourceOptions(parent=self, depends_on=[*instances, load_balancer_ips, *subnets]),
)
Expand Down

0 comments on commit 05d3a52

Please sign in to comment.