Skip to content

Commit ea59132

Browse files
authored
Merge pull request #184653 from bandersmsft/setup-config-aws-integration-01102022
CMB - Updated aws-integration-setup-configure
2 parents 42c7177 + 15cff7b commit ea59132

File tree

1 file changed

+30
-15
lines changed

1 file changed

+30
-15
lines changed

articles/cost-management-billing/costs/aws-integration-set-up-configure.md

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Set up AWS integration with Azure Cost Management
33
description: This article walks you through setting up and configuring AWS Cost and Usage report integration with Cost Management.
44
author: bandersmsft
55
ms.author: banders
6-
ms.date: 10/07/2021
6+
ms.date: 01/10/2022
77
ms.topic: how-to
88
ms.service: cost-management-billing
99
ms.subservice: cost-management
@@ -16,10 +16,6 @@ With Amazon Web Services (AWS) Cost and Usage report (CUR) integration, you moni
1616

1717
Cost Management processes the AWS Cost and Usage report stored in an S3 bucket by using your AWS access credentials to get report definitions and download report GZIP CSV files.
1818

19-
Watch the video [How to set up Connectors for AWS in Cost Management](https://www.youtube.com/watch?v=Jg5KC1cx5cA) to learn more about how to set up AWS report integration. To watch other videos, visit the [Cost Management YouTube channel](https://www.youtube.com/c/AzureCostManagement).
20-
21-
>[!VIDEO https://www.youtube.com/embed/Jg5KC1cx5cA]
22-
2319
## Create a Cost and Usage report in AWS
2420

2521
Using a Cost and Usage report is the AWS-recommended way to collect and process AWS costs. The Cost Management cross cloud connector supports cost and usage reports configured at the management (consolidated) account level. For more information, see the [AWS Cost and Usage Report](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-reports-costusage.html) documentation.
@@ -104,26 +100,40 @@ Add permission for AWS Organizations:
104100

105101
1. Enter **Organizations**.
106102
2. Select **Access level** > **List** > **ListAccounts**. This action gets the names of the accounts.
107-
3. In **Review Policy**, enter a name for the new policy. Check that you entered the correct information, and then select **Create Policy**.
108-
4. Go back to the previous tab and refresh your browser's webpage. On the search bar, search for your new policy.
109-
5. Select **Next: Review**.
110-
6. Enter a name for the new role. Check that you entered the correct information, and then select **Create Role**.
103+
3. Select **Add Additional permissions**.
104+
105+
Configure permissions for Policies
106+
107+
1. Enter **IAM**.
108+
1. Select Access level > List > **ListAttachedRolePolicies** and **ListPolicyVersions** and **ListRoles**.
109+
1. Select Access level > Read > **GetPolicyVersion**.
110+
1. Select **Resources** > policy, and then select **Any**. These actions allow verification that only the minimal required set of permissions were granted to the connector.
111+
1. Select role - **Add ARN**. The account number should be automatically populated.
112+
1. In **Role name with path** enter a role name and note it. You need to use it in the final role creation step.
113+
1. Select **Add**.
114+
1. Select **Next: Tags**. You may enter tags you wish to use or skip this step. This step isn't required to create a connector in Cost Management.
115+
1. Select **Next: Review Policy**.
116+
1. In Review Policy, enter a name for the new policy. Verify that you entered the correct information, and then select **Create Policy**.
117+
1. Go back to the previous tab and refresh the policies list. On the search bar, search for your new policy.
118+
1. Select **Next: Review**.
119+
1. Enter the same role name you defined and noted while configuring the IAM permissions. Verify that you entered the correct information, and then select **Create Role**.
111120

112-
Note the role ARN and the external ID used in the preceding steps when you created the role. You'll use them later when you set up the Cost Management connector.
121+
Note the role ARN and the external ID used in the preceding steps when you created the role. You'll use them later when you set up the Cost Management connector.
113122

114-
The policy JSON should resemble the following example. Replace _bucketname_ with the name of your S3 bucket.
123+
The policy JSON should resemble the following example. Replace `bucketname` with the name of your S3 bucket, `accountname` with your account number and `rolename` with the role name you created.
115124

116-
```JSON
125+
```json
117126
{
118127
"Version": "2012-10-17",
119128
"Statement": [
120129
{
121130
"Sid": "VisualEditor0",
122131
"Effect": "Allow",
123132
"Action": [
124-
"organizations:ListAccounts",
125-
"ce:*",
126-
"cur:DescribeReportDefinitions"
133+
"organizations:ListAccounts",
134+
"iam:ListRoles",
135+
"ce:*",
136+
"cur:DescribeReportDefinitions"
127137
],
128138
"Resource": "*"
129139
},
@@ -133,10 +143,15 @@ The policy JSON should resemble the following example. Replace _bucketname_ with
133143
"Action": [
134144
"s3:GetObject",
135145
"s3:ListBucket"
146+
"iam:GetPolicyVersion",
147+
"iam:ListPolicyVersions",
148+
"iam:ListAttachedRolePolicies",
136149
],
137150
"Resource": [
138151
"arn:aws:s3:::bucketname",
139152
"arn:aws:s3:::bucketname/*"
153+
"arn:aws:iam::accountnumber:policy/*",
154+
"arn:aws:iam::accountnumber:role/rolename"
140155
]
141156
}
142157
]

0 commit comments

Comments
 (0)