Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global --endpoint flag is not supported #1151

Open
marshall7m opened this issue Sep 9, 2022 · 0 comments
Open

global --endpoint flag is not supported #1151

marshall7m opened this issue Sep 9, 2022 · 0 comments

Comments

@marshall7m
Copy link

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     
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant