显示所有可用ec2实例并为所选实例启动ssm控制台会话的包装器
awscon的Python项目详细描述
awscon
连接到任何已部署实例的SSM控制台。
先决条件
使用aws cli设置配置文件
aws configure --profile PROFILE_NAME
您还可以省略--profile PROFILE_NAME
参数来设置您的default
凭据
有关更多信息,请参阅本文档 https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
建议使用awsp来管理aws配置文件
设置
PIP
pip install awscon
来源
git clone git@github.com:sergiopena/awscon.git
cd awscon
python setup.py install
测试
目前没有测试…可耻!
如何使用?
- 导出的名为aws_profile的env var是必需的,因为这是用于检索正在运行的ec2实例的概要文件
- 配置文件必须包含区域,目前我们只支持一个区域。
- 运行
awscon
它将检索您的ec2运行实例并显示一个菜单来连接它们。
贡献
我们非常欢迎您的贡献!
分发
python setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*
学分
灵感来自AWS配置文件切换器awsp
许可证
bsd