I'm a little unclear how to assign a EIP to an AWS...
# getting-started
a
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
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
a
Thanks guys
oh the example is right ther
derp
s
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!). 🤣