Create an AWS IAM user policy for Cloud Cost Management

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • If you manage users with IAM, you must create an IAM user profile that enables access to AWS data.

    Avant de commencer

    You must know how to create an IAM user and set up a user policy. See the AWS documentation on IAM for details.

    Use an auto-generated access key. You need the key information when you configure AWS credentials in the instance.

    Roles required:

    On the AWS Management Console: AWS Management Console administrator.

    Cloud Cost Management: insights_admin [sn_clin_core.insights_admin] or admin.

    Procédure

    1. Log in to the AWS Management Console and create a user in IAM.
    2. Save the Access Key ID and Secret Access Key.
    3. Attach permissions to the IAM user using either of the following methods:
      • Grant administrator access to the user by attaching the Administrator Access policy.
      • Create an IAM policy with a descriptive name and use the following JSON for billing, cloud watch, forecast, and actions.
        Billing
        {
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Sid": "VisualEditor0",
                    "Effect": "Allow",
                    "Action": [
                        "s3:GetObjectVersion",
                        "s3:GetObjectTorrent",
                        "s3:GetObject",
                        "s3:ListBucket",
                        "s3:GetObjectTagging",
                        "s3:ListMultipartUploadParts",
                        "s3:ListBucketMultipartUploads",
                        "s3:GetObjectVersion"
                    ],
                    "Resource": [
                        "arn:aws:s3:::<S3BucketName>/*",
                        "arn:aws:s3:*:<AWS Master Account ID>:job/*",
                        "arn:aws:s3:::<S3BucketName>"
                    ]
                },
                {
                    "Sid": "VisualEditor1",
                    "Effect": "Allow",
                    "Action": [
                        "s3:GetAccountPublicAccessBlock",
                        "s3:ListAllMyBuckets",
                        "s3:ListJobs"
                    ],
                    "Resource": "*"
                }
            ]
        }
        Cloud watch
        {
           "Version": "2012-10-17",
           "Statement": [
               {
                   "Sid": "VisualEditor0",
                   "Effect": "Allow",
                   "Action": [
                       "cloudwatch:GetMetricData",
                       "cloudwatch:ListMetrics"
                   ],
                   "Resource": "*"
               }
           ]
        }
        
        Describe Report Definitions
        {
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Sid": "VisualEditor0",
                    "Effect": "Allow",
                    "Action": "cur:DescribeReportDefinitions",
                    "Resource": "<BillingReportName>"
                }
            ]
        }
        Actions
        {
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Sid": "VisualEditor0",
                    "Effect": "Allow",
                    "Action": [
                        "ec2:DescribeInstances",
                        "ec2:StartInstances",
                        "ec2:ModifyInstanceAttribute",
                        "ec2:StopInstances",
                        "ec2:DescribeInstanceStatus"
                    ],
                    "Resource": "*"
                }
            ]
        }
        
        Use this policy to grant access to AWS Cost Explorer, Forecast, and Reservation Purchase Recommendation APIs for the IAM user that you configure to access billing data on the Service account
        {
           "Version": "2012-10-17",
           "Statement": [
               {
                   "Sid": "VisualEditor0",
                   "Effect": "Allow",
                   "Action": [
                       "ce:GetCostAndUsage",
                       "ce:GetCostForecast",
                       "ce:GetReservationPurchaseRecommendation"
                   ],
                   "Resource": "*"
               }
           ]
        }
        
        Use this policy to get AWS Auto-scale instances (Auto-scale instances aren’t included in Business Hours recommendations)
        {
             "Version": "2012-10-17",
             "Statement": [{
                   "Sid": "VisualEditor0",
                   "Effect": "Allow",
                   "Action": [
                        "autoscaling:DescribeAutoScalingInstances",
                        "autoscaling:DescribeAutoScalingGroups"
                   ],
                   "Resource": "*"
             }]
        }
        Use this policy for the AWS trusted advisor roles
        {
        
            "Version":"2012-10-17",		 	 	 
        
            "Statement": [
        
                {
        
                    "Effect": "Allow",
        
                    "Action": [
        
                        "support:DescribeTrustedAdvisorCheckRefreshStatuses",
        
                        "support:DescribeTrustedAdvisorCheckResult",
        
                        "support:DescribeTrustedAdvisorChecks",
        
                        "support:DescribeTrustedAdvisorCheckSummaries",
        
                        "support:RefreshTrustedAdvisorCheck",
        
                        "trustedadvisor:Describe*"
        
                    ],
        
                    "Resource": "*"
        
                }
            ]
        
        }