【发布时间】:2019-07-09 19:15:29
【问题描述】:
我正在尝试在 python 脚本中运行一些 boto 函数。我需要创建一个具有执行这些 boto 函数所需的最低权限的 IAM 策略。有没有一种好方法可以将这些 boto 函数与执行它们所需的 AWS IAM 权限相关联。
例如,这是我拥有的 boto 模块 (python)。用户需要哪些 IAM 权限才能运行它们?有什么好的方法可以找到这个吗?
boto.ec2.autoscale.connect_to_region
boto.ec2.elb.connect_to_region
boto.ec2.connect_to_region
boto.ec2.instance.Instance
boto.ec2.elb.loadbalancer.LoadBalancer
boto.ec2.autoscale.group.AutoScalingGroup
【问题讨论】:
-
抱歉,我没有看到它,我该如何使用它来告诉我运行
boto.ec2.autoscale.connect_to_region需要什么权限?
标签: python amazon-web-services boto3 boto amazon-iam