Trying to test out pulumi with ecs, but the basic ...
# getting-started
Trying to test out pulumi with ecs, but the basic example is not working for me 😐
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"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 "<>": dial tcp: lookup <|> on no such host : exit status 1
any leads? 😐
this looks like a local DNS issue?
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
Curious what your
is, if you wouldn't mind sharing.
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 πŸ™
Oh awesome, glad to hear you got past it. πŸ™Œ