AWS ECS控制工具

ya-ecs-ctl的Python项目详细描述


又一个ecs ctl工具

pip install ya-ecs-ctl

添加二进制:

ecs

Usage: ecs [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  ci       Interact with Container Instances
  cluster  Interact with Cluster
  ec2      Interact with EC2 Instances
  repo     Interact with (Container) Repos
  service  Interact with Service
  task     Interact with Task


开始

确保aws cli工具工作正常,并且您已经运行了aws configure。使用BOTO3并假定设置了以下环境:

  • aws_access_key_id
  • aws_secret_access_键

应设置默认区域。用确认

cat ~/.aws/config 

[default]
region=us-west-1

运行

ecs service ls

它将首先要求您选择一个默认集群。 当前此工具没有创建命令。

此首选项保存在此处:

cat .settings.conf 

{
    "cluster": "Dev-Apps"
}

让我们再试一次。

ecs service ls

Cluster: Dev-Apps

+------------------------+---------------------------+-------------+---------+---------+---------+--------+--------------+----------------------------+
| Service Name           | Task Def                  | Launch Type | Desired | Running | Pending | Status | Created      | Deployments (des/pend/run) |
+------------------------+---------------------------+-------------+---------+---------+---------+--------+--------------+----------------------------+
| my-app                 | my-app:122                | EC2         | 2       | 2       | 0       | ACTIVE | 4 months ago | 2/0/2 6 days ago           |
| another-app            | another-app:1             | EC2         | 2       | 2       | 0       | ACTIVE | a day ago    | 2/0/2 a day ago            |
+------------------------+---------------------------+-------------+---------+---------+---------+--------+--------------+----------------------------+

服务命令

Usage: ecs service [OPTIONS] COMMAND [ARGS]...

  Interact with Service

Options:
  --help  Show this message and exit.

Commands:
  create    Create Service
  delete    Delete Service
  describe  Describe Service
  ls        List Services
  redeploy  Force redeployment of a Service
  scale     Scale Service
  tasks     List Tasks for Service
  update    Update Service

有关服务的配置结构,请参阅“examples”文件夹。 为Fargate、计划任务等提供支持。

替代品..

https://github.com/diegoacuna/ecs-ctl

Manage Amazon ECS like with kubectl.

https://github.com/labd/ecs-deplojo/

Deployment tool for Amazon ECS.

https://github.com/fabfuel/ecs-deploy

ecs-deploy simplifies deployments on Amazon ECS by providing a convinience CLI tool for complex actions, which are executed pretty often.

https://github.com/cuttlesoft/ecs-deploy.py

Python script to instigate an automatic blue/green deployment using the Task Definition and Service entities in Amazon's ECS.

https://github.com/boroivanov/ecs-tools

ecs tools cli旨在使部署到ecs fargate变得更容易。它还提供了缩放和更新环境变量的简单方法。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java重写父类中的特定行   java Apache Commons CLI订购帮助选项?   java如何将数据添加到网格视图   java如何在Apache Camel批处理后移动文件?   java如何为日期范围的between子句编写hql查询?   雅加达ee开始Java编程,我应该从哪里开始?   排序Java8+流:检查我的objectinstances的两个字段的列表顺序是否正确   java如何将json转换为Map<String,Object>确保整数为整数   java不能在Spring数据JPA批处理过程中创建TransactionException   java损坏的PDF文件从FTP下载到使用Apache Common Net的设备   java无法使用Spring批处理和Wso2为XML架构命名空间找到Spring NamespaceHandler   java Android ImageView未显示在SherlockFragment中   Maven在构建时出错=无法识别Java路径   java如何使用批处理文件调用关闭处理程序?   java admob广告横幅重叠我的游戏屏幕安卓