Trying to test out pulumi with ecs, but the basic ...
# getting-started
a
Trying to test out pulumi with ecs, but the basic example is not working for me 😐 https://www.pulumi.com/docs/clouds/aws/guides/ecs/
Copy code
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";

const cluster = new aws.ecs.Cluster("cluster", {});
const lb = new awsx.lb.ApplicationLoadBalancer("lb", {});
const service = new awsx.ecs.FargateService("service", {
    cluster: cluster.arn,
    assignPublicIp: true,
    desiredCount: 2,
    taskDefinitionArgs: {
        container: {
            image: "nginx:latest",
            cpu: 512,
            memory: 128,
            essential: true,
            portMappings: [{
                targetGroup: lb.defaultTargetGroup,
            }],
        },
    },
});
export const url = lb.loadBalancer.dnsName;
pulumi up, just hangs for ever… and the error in aws UI:
Copy code
ResourceInitializationError: failed to validate logger args: create stream has been retried 7 times: failed to create Cloudwatch log stream: RequestError: send request failed caused by: Post "<https://logs.undefined.amazonaws.com/>": dial tcp: lookup <http://logs.undefined.amazonaws.com|logs.undefined.amazonaws.com> on 172.31.0.2:53: no such host : exit status 1
any leads? 😐
b
this looks like a local DNS issue?
m
That
logs.undefined
looks suspicious to me, like a missing or overridden region configuration or something. πŸ€”
This doesn't repro for me -- I'm able to navigate to the exported URL:
Will see if adding some logging helps shed some light on what you might be running into.
One question, though: Did you start with a template, like
aws-typescript
?
Curious what your
aws:region
is, if you wouldn't mind sharing.
a
not sure what was happening there, but I dumped everything and started it from scratch with a new template. it worked 😐 I was using S3 as a backend, so maybe me playing around with login/logout broke stuff 🀷 but thanks πŸ™
m
Oh awesome, glad to hear you got past it. πŸ™Œ