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

able-toothbrush-11517

08/20/2023, 2:26 AM
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

billowy-army-68599

08/20/2023, 2:53 AM
this looks like a local DNS issue?
m

miniature-musician-31262

08/20/2023, 3:49 AM
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

able-toothbrush-11517

08/20/2023, 11:33 PM
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

miniature-musician-31262

08/21/2023, 3:29 AM
Oh awesome, glad to hear you got past it. πŸ™Œ