AWS Code Sample
Catalog

billing-report-resource-policy-grants-reports-access-to-s3.json

This file demonstrates how you could use an IAM policy to grant Billing reports access to an S3 bucket.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "386209384616" }, "Action": [ "s3:GetBucketAcl", "s3:GetBucketPolicy" ], "Resource": "arn:aws:s3:::<your bucketname>" }, { "Effect": "Allow", "Principal": { "AWS": "386209384616" }, "Action": "s3:PutObject", "Resource": "arn:aws:s3:::<your bucketname>/*" } ] }

Sample Details

Service: billing

Author: AWS

Type: full-example

On this page: