https://pulumi.com logo
#general
Title
# general
c

clean-salesclerk-32849

09/12/2022, 7:55 PM
Hi, what's the best way to find the service IP from this code:
Copy code
export const fargate = new awsx.ecs.FargateService(NAME, {
  cluster,
  taskDefinitionArgs: {
    containers: {
      mbankrlproxy: {
        image: image,
        memory: 512,
        portMappings: [{ containerPort: 80, hostPort: 80 }],
        environment: ENVIRONMENT,
      },
    },
  },
  desiredCount: 1,
});
either to get the randomly generated IP, or better yet to use a reserved IP. I've been looking in the docs but can't find it ...
s

stocky-restaurant-98004

09/12/2022, 10:36 PM
You can attach an application load balancer, but its IPs are dynamic and can't be relied upon.
c

clean-salesclerk-32849

09/13/2022, 1:35 PM
It is creating a randomly assigned IP w/o a load balancer. How do I get to the IP's from the awsx api?
2 Views