Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

"Invalid interpolation format" when specifying mandatory variables in docker-compose files #651

Description

@ptsteadman

Summary

When using docker-compose v3 files that use mandatory variable substition, running ecs-cli compose gives an "invalid interpolation format" error, even though syntax is valid for docker-compose v3. Possibly related to this project's docker-compose dependencies, see: docker/compose#5683

Description

  • Which specific command was run? ecs-cli compose -f ops/docker-compose.foo.yml -p foo create
  • Which version of the CLI you are using? 1.9.0
  • Which version of Go are you using? (Run: go version) go not installed
  • What platform are you using to run ECS CLI commands? (E.g. Linux, MacOSX, Windows) ubuntu linux

Config files

  • docker-compose.yml
version: '3'
services:
  isf-foo:
    image: "f00.dkr.ecr.us-east-1.amazonaws.com/isf-foo:${TAG:?err}"
    ports:
      - "9200:9200"
...
  • ecs-params.yml

  • ~/.ecs/config

Expected Behavior

Observed Behavior

ERRO[0000] Unable to open ECS Compose Project error="invalid interpolation format for services.isf-foo.image: \"foo.dkr.ecr.us-east-1.amazonaws.com/isf-connector:${TAG:?err}\". You may need to escape any $ with another $.

No activity

Activity on this issue will appear here.

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