This message was deleted.
# localstack
s
This message was deleted.
m
Solved it with:
Copy code
aws.sdk.config.credentials = {
  accessKeyId: "test",
  secretAccessKey: "test",
};
aws.sdk.config.region = aws.config.region;
and
Copy code
imageName: `localhost:4510/${appName}-image`,
There is also a race condition with the first request to ECR and the
docker login
. On the creation of a new repository, ECR in localstack starts the http server. When using awsx to create the repository, this also impies
docker login
.
docker login
is happening before the http server is ready and causes the failure above. To work around, I use the aws cli to create a fake repository, to get the ECR http server running before
docker login
.