https://pulumi.com logo
#getting-started
Title
# getting-started
a

able-energy-34495

04/20/2023, 7:33 PM
I'm a little unclear how to assign a EIP to an AWS LB from the docs: https://www.pulumi.com/registry/packages/aws/api-docs/ec2/eipassociation/ NOTE: Do not use this resource to associate an EIP to
aws.lb.LoadBalancer
or
aws.ec2.NatGateway
resources. Instead use the
allocation_id
available in those resources to allow AWS to manage the association, otherwise you will see
AuthFailure
errors. So how do I do it?
Those resources don't have a allocation_id
s

salmon-account-74572

04/20/2023, 7:37 PM
https://www.pulumi.com/registry/packages/aws/api-docs/lb/loadbalancer/ Have a look at the “Specifying Elastic IPs” section near the top and it should show an example of how to do it.
s

stocky-restaurant-98004

04/20/2023, 7:38 PM
a

able-energy-34495

04/20/2023, 7:52 PM
Thanks guys
oh the example is right ther
derp
s

salmon-account-74572

04/20/2023, 8:02 PM
Haha, no worries! I’ve lost count of how many times I’ve overlooked something in the documentation (not just for Pulumi, but for other things too!). 🤣
2 Views