I am using boto3, trying out Cost Exploer to get cost and usage
import boto3
client = boto3.client('ce')
client.get_cost_and_usage()
Already grant the following permissioin to the user
"aws-portal:ViewUsage",
"aws-portal:ViewBilling"
But always get error
An error occurred (AccessDeniedException) when calling the GetCostAndUsage operation: User: arn:aws:iam::123456789:user/User1 is not authorized to perform: ce:GetCostAndUsage on resource: arn:aws:ce:us-east-1:123456789