Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

service and web-service fail when using ECR #54

Open
idris opened this issue Oct 11, 2016 · 0 comments
Open

service and web-service fail when using ECR #54

idris opened this issue Oct 11, 2016 · 0 comments

Comments

@idris
Copy link

idris commented Oct 11, 2016

If you try to setup a service or web-service using an image from ECR, Terraform fails with errors:

variable "main" is nil, but no error was reported

The reason is because the name is derived from image, replacing / with -. This works for names like segmentio/pingdummy, but when the image is hosted on ECS the image comes in the format aws_account_id.dkr.ecr.region.amazonaws.com/my-web-app. Those dots in the URL cause Terraform to fail.

Current workaround: Just specify a name when defining your service.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant