权杖aws分解器
sceptre-aws-resolver的Python项目详细描述
权杖AWS分解器
Sceptre任何aws api的解析器。
开始运行pip install sceptre-aws-resolver
格式:
!aws client::operation::optional_parameters::optional_jmespath_filter
。
示例:
- 以字符串格式返回对stsGetCallerIdentity的调用:
!aws sts::get_caller_identity
- 获取当前用户ID:
!aws sts::get_caller_identity::::UserId
- 读取Systems Manager参数并返回其值:
!aws ssm::get_parameter::'Name':'your-param-name'::Parameter.Value
- 读取systems manager参数并返回其decrypted值(如果需要):
!aws ssm::get_parameter::'Name':'your-secret-param','WithDecryption':True::Parameter.Value
有关查询示例,请参见jmespath包:
https://pypi.org/project/jmespath/
根据简化的BSD许可证发布。有关详细信息,请参见LICENCE.txt。
感谢https://github.com/zaro0508/sceptre-date-resolver项目提供了样板。