weixin_39600447 2020-11-29 13:49
浏览 0

Add region and profile flags to local subcommands

Fixes #873

Enter [N/A] in the box, if an item is not applicable to your change.

Testing
- [x] Unit tests passed - [x] Integration tests passed - [x] Unit tests added for new functionality - [x] Listed manual checks and their outputs in the comments (example) - [x] Link to issue or PR for the integration tests:

Documentation
- [ ] Contacted our doc writer - [ ] Updated our README

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

该提问来源于开源项目:aws/amazon-ecs-cli

  • 写回答

6条回答 默认 最新

  • weixin_39600447 2020-11-29 13:49
    关注

    Shows up in help text under local:

    
    ~/go/src/github.com/aws/amazon-ecs-cli(local-readme)$ ecs-cli local --help
    NAME:
       ecs-cli local - Run your ECS tasks locally.
    
    USAGE:
       ecs-cli local command [command options] [arguments...]
    
    COMMANDS:
         create  Create a Compose file from an ECS task definition.
         up      Run containers locally from an ECS Task Definition. NOTE: Creates a docker-compose file in current directory.
         down    Stop and remove a running ECS task.
         ps      List locally running ECS task containers.
    
    OPTIONS:
       --ecs-profile value       [Optional] Specifies the name of the ECS profile configuration to use. Defaults to the default profile configuration. [$ECS_PROFILE]
       --aws-profile value       [Optional] Use the AWS credentials from an existing named profile in ~/.aws/credentials. [$AWS_PROFILE]
       --region value, -r value  [Optional] Specifies the AWS region to use. Defaults to the region configured using the configure command
       --help, -h                show help
    
    
    评论

报告相同问题?