【发布时间】:2018-11-07 01:53:43
【问题描述】:
我正在使用 boto3,尝试使用 Cost Exploer 来获取成本和使用情况
import boto3
client = boto3.client('ce')
client.get_cost_and_usage()
已向用户授予以下权限
"aws-portal:ViewUsage",
"aws-portal:ViewBilling"
但总是报错
调用 GetCostAndUsage 操作时发生错误 (AccessDeniedException):用户:arn:aws:iam::123456789:user/User1 无权执行:ce:GetCostAndUsage on resource:arn:aws:ce: us-east-1:123456789
【问题讨论】:
标签: boto3 amazon-iam