Hi, I'm working on a demo to evaluate Pulumi for o...
# aws
s
Hi, I'm working on a demo to evaluate Pulumi for our AWS resources. I think I have it nearly working, but when I try to upload a docker image to ECR using awsx.ecs.Image.fromDockerBuild, I get an error that docker login has failed. It looks to me like the temporary credentials the awsx module gets from ECR may not be making it down into the docker module. All of the other resources in my project (including the automatically created ECR repo) look like they've successfully created themselves. Here's the build code
Copy code
var image = awsx.ecs.Image.fromDockerBuild("WebAuthImage", {
            dockerfile: "D:/code/kaiju/deploy/Dockerfile",
            context: "D:/code/kaiju",
            args: {
                "APP_NAME": "web-auth",
                "GITHUB_TOKEN": process.env.GITHUB_TOKEN ?? "ERROR TOKEN"
            }
        });
With debug logging, I can see the docker image build succeed during the plan step of
pulumi up
.
f
What’s the error message you’re getting?
Nevermind 🙂 I see you’ve got a thread in #general going already
s
Yeah, sorry to post twice, I didn't see this channel at first.