镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

service and web-service fail when using ECR #54

Open

Description

@idris

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions