nathanpeck/greeter-app-mesh-cdk

How to get the arn of the registry

hffmnn opened this issue · 0 comments

Hi there.

when looking at https://github.com/nathanpeck/greeter-app-mesh-cdk/blob/master/index.js, it looks like you are using some arn directly. Can you elaborate on how to get that arn? I'd like to use it from eu-west-1 and I guess for that it is different.

Looking at https://docs.aws.amazon.com/app-mesh/latest/userguide/envoy.html it only gives me an url, e.g. 840364872350.dkr.ecr.us-west-2.amazonaws.com/aws-appmesh-envoy:v1.12.2.1-prod. When trying to do something like

ecs.ContainerImage.fromRegistry(840364872350.dkr.ecr.us-west-2.amazonaws.com/aws-appmesh-envoy:v1.12.2.1-prod)

the CDK gives me this warning:

Proper policies need to be attached before pulling from ECR repository, or use 'fromEcrRepository'.

Any ideas?