Hi all, I am getting "panic: value is null" problem when I tried to create ecs service on top of app...
a
Hi all, I am getting "panic: value is null" problem when I tried to create ecs service on top of application load balancer and listenerRule. It seems a timing issue since I can get some resource deployed sometime. But, it failed in most of times when the stack was trying to create ListenerRules.
Copy code
aws:lb:ListenerRule (global-xxx-rule):
    error: error reading from server: EOF

  aws:lb:ListenerRule (global-yyy-rule):
    error: error reading from server: EOF
i
Hi Shu, would you be able to share the code that's leading to the error you're experiencing?
a
@incalculable-motherboard-92742 Thanks a lot for your response! I nailed down the problem is on creating AWS LB ListenerRule. I downgraded these two packages to pulumi-aws==6.12.3 pulumi_awsx==2.12.3, Then the problem disappeared. Somehow the latest pulumi aws Python package is having the problem.
The exact function call had the problem is
Copy code
rule1 = aws.lb.ListenerRule(
        f"{resource_name}-rule",
        listener_arn=wl.arn,
        priority=priority,
        actions=[{"type": "forward", "target_group_arn": tg.arn}],
        conditions=[{"host_header": {"values": [hostname]}}],
👀 1
i
Thanks for your update. It's great to hear you solved the issue. Consider filing an issue under https://github.com/pulumi/pulumi-aws/issues so we can investigate the error you encountered further.
a
sure. will do
🙏 1
👍 1