使用aws假定角色执行命令的包装器

aws-profile的Python项目详细描述


AWS剖面图图片::https://img.shields.io/travis/jrstarke/aws-profile/master.svg?style=flat square
:目标:https://travis ci.org/jrstarke/aws profile

…图片::https://img.shields.io/covertalls/jrstarke/aws-profile/master.svg?style=flat square
:目标:https://coveralls.io/r/jrstarke/aws profile

…图片::https://img.shields.io/pypi/v/aws-profile.svg?style=flat square
:目标:https://pypi.python.org/pypi/aws profile

…图片::https://img.shields.io/pypi/pyversions/aws-profile.svg?style=flat square
:目标:https://pypi.python.org/pypi/aws profile

…图片::https://img.shields.io/pypi/implementation/covertalls.svg?style=flat square
:target:https://pypi.python.org/pypi/aws profile


wrapper脚本,用于生成aws assumerole键并将其传递给其他脚本



usage
----

aws profile**,使用参数和环境变量内联。

**内联配置文件名**

`AWS配置文件[-p,--profile<;profile name>;]<;command>;`

**配置文件环境变量**

`AWS默认配置文件='<;profile>;'AWS配置文件<;command>;`

`AWS配置文件='<;profile>;'AWS配置文件<;command>;`



options
----

**aws_cache**:将aws_cache环境变量设置为控制缓存。
使用“aws_cache=false”禁用缓存,或使用任何其他值
(或unset)保持缓存启用。当设置为false时,每次都会请求mfa
代码。


配置配置文件
----

`aws profile'使用aws cli中的内置配置文件。有关详细信息,请参见AWS文档中的“命名配置文件”https://docs.aws.amazon.com/cli/latest/userguide/cli multiple profiles.html>;`。


source_profile=default
mfa_serial=arn:aws:iam::<;account_id>;:mfa/<;username>;

`是用于默认配置文件的AWS用户的用户名。


development
——


包装器

``virtualenv venv`
``source venv/bin/activate``



``pyenv virtualenv aws profile``
``pyenv activate aws profile`

>安装开发依赖项

``pip install-e.[dev]```

在进行更改之前运行测试,然后在创建拉取请求之前再次运行测试(将有3个关于可以忽略的外部依赖项的警告)

``pytest--cov=awsprofile--cov report term missing``




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

推荐PyPI第三方库


热门话题
java如何将向量的内容从一个包发送到另一个包?   java无法扩展类并对ArrayList进行排序   java无法对字符串的ArrayList进行排序   JavaP:ajax更改事件请求返回500错误   java如何为TableHeader使用渲染器   带有记号的java JSlider问题   Java如何在不同的类中调用add()方法   java如何使用JDBC和HSQLDB检索以前自动生成的PK ID值   java如何使dropwizard应用程序在启动完成之前忽略所有调用   使用MethodValidationPostProcessor进行java Spring验证   java Mediaplayer错误(19 0)不适用于release()   java UnsatifiedPendencyException Swigger2+Sringboot+@RestClientTest   java如何从onActivityResult更新回收器视图元素   java基于图像添加地板或如何优化已有方法   jComboBox的java奇怪行为   java从数据库表php中提取信息   Android-sqlite更新方法;JAVAlang.IllegalStateException:无法执行活动的方法   java如何将多个XSD文件合并到一个XSD文件?   java在不使用大多数API的情况下消除空格