amazon-ecs-cli icon indicating copy to clipboard operation
amazon-ecs-cli copied to clipboard

global --endpoint flag is not supported

Open marshall7m opened this issue 3 years ago • 0 comments

Summary

The global flag --endpoint is not available even though ecs-cli -h output specifies it's availability:

GLOBAL OPTIONS:
   --endpoint value  Use a custom endpoint with the ECS CLI
   --help, -h        show help
   --version, -v     print the version

Description

  • Which specific command was run? (Example: ecs-cli up --capability-iam --size 2 --launch-type EC2)
ecs-cli local create --endpoint http://moto-server:5000 --force --task-def-remote arn:aws:ecs:us-west-2:123456789012:task-definition/task:1 --output /tests/docker-compose.create-deploy-stack.local.yml
  • Which version of the CLI you are using? (Run: ecs-cli --version) 1.21.0
  • Which version of Go are you using? (Run: go version) None
  • What platform are you using to run ECS CLI commands? (E.g. Linux, macOS, Windows) Linux

Config files

  • docker-compose.yml None (trying to create it via the command mentioned above)
  • ecs-params.yml None (trying to create it via the command mentioned above)
  • ~/.ecs/config None

Expected Behavior

The expected docker compose and ecs params file should be successfully created.

Observed Behavior

Incorrect Usage: flag provided but not defined: -endpoint

NAME:
   ecs-cli local create - Creates a Compose file from an ECS task definition.

USAGE:
   ecs-cli local create [command options] [arguments...]

OPTIONS:
   --task-def-file value, -f value    Specifies the filename value that contains the task definition JSON to convert to a Docker Compose file. If one is not specified, the ECS CLI will look for task-definition.json.
   --task-def-remote value, -t value  Specifies the full Amazon Resource Name (ARN) or family:revision value of the task definition to convert to a Docker Compose file. If you specify a task definition family without a revision, the latest revision is used.
   --output value, -o value           Specifies the local filename value to write the Docker Compose file to. If one is not specified, the default is docker-compose.ecs-local.yml.
   --force                            Overwrite output docker compose file if it exists. Default compose file is docker-compose.ecs-local.yml.
   --use-role                         Uses the task role ARN instead of temporary credentials.
   
FATA[0000] flag provided but not defined: -endpoint     

marshall7m avatar Sep 09 '22 19:09 marshall7m