...
- Create an S3 bucket and note down the name, for example, "programmaticbilling". Next we will configure AWS will to write the programmatic billing data to this bucket.
Assign the following policy to the S3 bucket. In this example, the bucket is called "programmaticbilling". Replace "programmaticbilling" with the name of your bucket
Code Block { "Version": "2008-10-17", "Id": "Policy1335892530063", "Statement": [ { "Sid": "Stmt1335892150622", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::386209384616:root" }, "Action": [ "s3:GetBucketAcl", "s3:GetBucketPolicy" ], "Resource": "arn:aws:s3:::programmaticbilling" }, { "Sid": "Stmt1335892526596", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::386209384616:root" }, "Action": "s3:PutObject", "Resource": "arn:aws:s3:::programmaticbilling/*" } ] }
- Open Billing preferences and select the option to "Receive billing reports". Enter the name of your bucket
- Create a new user for programmatic billing (you can give it any name - we used "programmaticbilling" again!). Assign the AmazonS3ReadOnlyAccess policy to your user
...
Azure
- Grant access to billing records to the app role created in Azure
- Obtain the OfferDurableID from the offer agreement for your enterprise by going to your subscription → Administer.
- Also, obtain the Currency, Locale and RegionInfo.
...