https://pulumi.com logo
Title
m

magnificent-jordan-5838

07/08/2021, 7:54 PM
Does anyone know how to associate a static-ip to aws fargate tasks?
b

billowy-army-68599

07/08/2021, 7:58 PM
do you mean a static ip for inbound or outbound requests?
m

magnificent-jordan-5838

07/08/2021, 7:58 PM
for outbound requests
b

billowy-army-68599

07/08/2021, 7:59 PM
it's done at the VPC level, you'll need to create a NAT gateway and an EIP
m

magnificent-jordan-5838

07/08/2021, 8:01 PM
I'm fairly new to Pulumi - so I figured I could use aws crosswalk, but maybe I need to use lower level primitives?
Something along the lines of:
export const vpc = new awsx.ec2.Vpc("custom", {
    numberOfAvailabilityZones: 1,
    numberOfNatGateways: 1,
});
And then creating a cluster with that vpc, and associating the cluster to the task.
I actually just realized that I'm trying to test this via inbound traffic instead of outbound. 🤦‍♂️ I'll improve my test and see if I've actually achieved what I wanted.
m

many-yak-61188

07/08/2021, 8:03 PM
I would be surprised if you couldn't do it with the default vpc
👍 1