michalvlcek/aws-commands 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

michalvlcek/aws-commands

Composer 安装命令:

composer require michalvlcek/aws-commands

包简介

README 文档

README

Useful (symfony) commands for working with AWS.

# installation

  • composer install
  • create .env file from example (cp .env.example .env) and setup credentials:

# usage

  • php app.php - for list of all commands
  • php app.php name:of:command [[option] --argument]

# commands

name description
demo:greet Example command.
ec2:hosts-info Creating "/etc/hosts" records from all EC2 instances (name and IP).
iam:assumed-roles Lists assumed roles from group policies.

ec2:hosts-info

Command which allows to grab information from all EC2 instances (across all regions and sub-accounts) in "hosts" style format. Default call (with no argument) prints output to stdOut. If you set file argument output is appended to specified file.

php app.php ec2:hosts-info # dump to std output
php app.php ec2:hosts-info --file=/etc/hosts # dump to file

results in:

 12.12.123.123  SomeName        # i-c12ab06c
 12.12.12.1     AnotherName     # i-05fce0883ca1d7f12

iam:assumed-roles

Command attempts to extract all possible assumed roles. It is done by querying user associated groups and their policyes. Command which allows to grab informations from all EC2 instances (across all regions) in "hosts" style format. Default call (with no argument) prints output to stdOut. If you set file argument output is appended to specified file.

php app.php iam:assumed-roles

results in:

array:2 [
  0 => array:2 [
    "account" => "012345678901"
    "role" => "roleName"
  ],
  1 => array:2 [
    "account" => "112345678901"
    "role" => "anotherRoleName"
  ]
]

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-03-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固