Skip to content
Export guide · Cloud

How to export your AWS Config configuration, and what we check in it

Where you run it: AWS CloudShell (the CloudShell icon in the AWS console's navigation bar; the AWS CLI and jq are already installed) or the AWS CLI and jq on your own computer.

In short

AWS Config configuration export: the file AWS Config writes of its own settings, which a configuration review reads setting by setting without connecting to AWS Config.

How to export the AWS Config configuration, step by step, what the review checks in the file (63 checks run), and what it does not read.

The fileJSON, one file per Region (aws-config.json): your AWS Config rules, each with its compliance joined in
Checks run on it63
Highest grade its findings reachPROVEN
Feeds attack pathsYes
Not read from this export1 area, listed below

Sources: AWS Config documentation (1); AWS Config documentation (2); AWS Config documentation (3); the vendor table.

How to export it

Who can pull it
An IAM user or role allowed config:DescribeConfigRules and config:DescribeComplianceByConfigRule
Time
About 5 minutes for one Region; about 2 minutes more for each further Region.
The file
JSON, one file per Region (aws-config.json): your AWS Config rules, each with its compliance joined in

No console export: In the AWS Config console, the Rules page shows your rules and their current compliance results in a table. The file the review reads is made from the answers of the two commands, so the steps use them: AWS CloudShell runs them inside the console, with no command line tools to install.

From the command line

  1. aws configservice describe-config-rules --region <region> --output json > rules.json(<region> is the code of the Region whose AWS Config rules you want, e.g. eu-west-1: the Region set in the console's Region selector; run these steps once per Region)

    The vendor's page, checked 2026-11-11
  2. aws configservice describe-compliance-by-config-rule --region <region> --output json > compliance.json

    The vendor's page, checked 2026-11-11
  3. jq -n --slurpfile r rules.json --slurpfile c compliance.json '{ConfigRules: [$r[0].ConfigRules[] as $rule | {ConfigRuleName: $rule.ConfigRuleName, Source: $rule.Source, Compliance: ([$c[0].ComplianceByConfigRules[] | select(.ConfigRuleName == $rule.ConfigRuleName) | .Compliance][0] // {})} + $rule]}' > aws-config.json

    The vendor's page, checked 2026-10-16
  4. In CloudShell, choose Actions > Download file and enter aws-config.json (on your own computer the file is already in the folder you ran the commands in) (if Actions has no Download file, CloudShell opened in the console toolbar: choose Open in new browser tab, then Actions > Download file)

    The vendor's page, checked 2026-11-11

What the file looks like

JSON, one file per Region (aws-config.json): your AWS Config rules, each with its compliance joined in. It varies with the number of AWS Config rules in the Region: AWS documents no size. The upload takes files up to 10 MB.

What it holds: All AWS Config rules and their current compliance state, joined in one aws-config.json.

Upload aws-config.json: rules.json and compliance.json on their own are not read. Run these commands in bash (macOS, Linux, WSL, or AWS CloudShell): in Windows PowerShell 5.1, > writes UTF-16, which jq and the upload refuse.

Afterwards

In CloudShell, run rm rules.json compliance.json aws-config.json, and delete the downloaded copy on your computer. The steps create no key, token, user or role, so there is nothing to revoke. If AWSConfigUserAccess, an inline policy or AWSCloudShellFullAccess was added for this export, ask your AWS administrator to remove it.

If the export goes wrong

What you seeThe fix
Access denied: "User: ... is not authorized to perform: config:DescribeConfigRules", or CloudShell does not start and says "Unable to start the environment. You don't have required permissions. Ask your IAM administrator to grant access to AWS CloudShell"Ask your AWS administrator for the inline policy with the two actions, or to attach AWSConfigUserAccess to your IAM user or role, then run the commands again. If CloudShell will not start, ask for AWSCloudShellFullAccess as well, or run the commands with the AWS CLI on your own computer.
rules.json holds an empty list ("ConfigRules": [])The rules are in another Region: run all the steps again with --region set to the Region where the AWS Config console shows your rules.
The jq step fails because jq is not installed, or the upload refuses rules.json or compliance.jsonRun the steps in AWS CloudShell, where jq is pre-installed, and upload aws-config.json, the file the jq step writes.

What we read from it

Checks run
63
Formats read
aws configservice describe-config-rules + Security Hub findings
Releases
2024.1 to current

Checks run is the number of checks that reached a result on this system's own export in our tests, as the vendor table shows it.

The areas checked

  • AWS Config rules and the state of each
  • What those rules report: CloudTrail, GuardDuty and Security Hub coverage, root keys and MFA, public S3, encryption, security groups open to 0.0.0.0/0, IAM hygiene

The grade its findings reach

Proven A finding from this file can reach PROVEN: the stored file is read a second time by a separate reader, and the finding is found at the setting it names.

Its findings feed attack paths: each one can be a step on a path an attacker could take to your crown jewels.

Attack paths, the one change and dollar figures are MODELED. How each grade is worked out is on the method page.

What we do not read from this export

  • Config recorder coverage: not in this export (the recorder status is a separate call)
  • Other regions: each file is one region
  • Conformance packs and Service Control Policies
  • The code inside custom Lambda rules
  • Security Hub investigations and cases
  • Security Hub findings, standards and control status: not in this export

Limits of the reader

  • The checks of this system are not counted: a check counts once a test shows it firing on a file in the layout the vendor documents.

A finding never comes from what the file does not hold: live traffic, running hosts and logs are not in a configuration export.

A AWS Config finding from the sample company

Sample company: Acme Capital (fictional)

Reporting snapshots bucket readable by anyone

CriticalObservedAWS Config · S3 reporting-snapshots › policy

Run the sample to see this finding with its fix and the paths it sits on.

Questions

Who can export the AWS Config configuration?

An AWS Identity and Access Management (IAM) user or role that is allowed two actions, config:DescribeConfigRules (AWS access level: List) and config:DescribeComplianceByConfigRule (Read), because those are the two calls the commands make. Narrowest: ask your AWS administrator for an inline policy with those two actions on Resource "*" (IAM console → Users or Roles → the name → Permissions → Add permissions → Create inline policy). Easier: the AWS managed policy AWSConfigUserAccess. AWS says it "does not provide permission to configure AWS Config"; it allows more than this export uses: config:Get*, config:Describe*, config:List* and config:Select* (the recorded configuration of your resources), config:Deliver* (asking AWS Config to deliver a configuration snapshot to the Amazon S3 bucket of your delivery channel), tag:GetResources and tag:GetTagKeys, and cloudtrail:DescribeTrails, cloudtrail:GetTrailStatus and cloudtrail:LookupEvents. SecurityAudit, if you already have it, includes config:Describe* as well. To run the commands in AWS CloudShell, the same user also needs CloudShell permissions. The quick way is the AWS managed policy AWSCloudShellFullAccess (cloudshell:*), which AWS says "Grants permission to use AWS CloudShell with full access to all features": opening the shell, uploading and downloading files, and deleting the CloudShell home directory. For less, AWS lists the actions one by one: cloudshell:CreateEnvironment, cloudshell:CreateSession, cloudshell:GetEnvironmentStatus and cloudshell:StartEnvironment to launch CloudShell, cloudshell:PutCredentials to use your console sign-in inside it, and cloudshell:GetFileDownloadUrls for Download file. CloudShell permissions allow no action in IAM, AWS Config or AWS WAF: the commands inside still need the permissions above. On your own computer none of this is needed.

Does the export change anything?

Nothing in AWS Config: the two commands call a List action and a Read action. AWS CloudTrail records the calls. In AWS CloudShell, launching the shell creates a compute environment, and the three files stay in its home directory until you delete them or 120 days pass after your last session in that Region.

Does the file hold passwords or keys?

No passwords, keys or tokens: the two answers have no field for them. Still sensitive, in clear text: the account ID and Region in every rule's Amazon Resource Name (ARN), the rule names, each rule's input parameters (a JSON string), the ARN of the Lambda function behind a custom rule, and how many resources fail each rule. The failing resources themselves are not listed. With redaction on (the default), the passwords, keys and tokens the review recognises are replaced with a placeholder before anything is stored; the check before upload shows how many it found.