使用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``
:目标: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``