By using AWS re:Post, you agree to the Terms of Use

AWS Config : Accessing AWS Config NonComplaint rules and resources

0

I am trying to import the noncompliant rules and noncompliant resources from the AWS Config Dashboard. It there a way to do it using CLI or the console.

1 Answer
0
Accepted Answer

Hi - if you are looking for a way to export information from AWS Config about your current rules and resources, I'd recommend taking a look at the Advanced Query feature - https://docs.aws.amazon.com/config/latest/developerguide/querying-AWS-resources.html. This will let you query information from AWS Config using a SQL-like query language. As an example, this is a sample query for retrieving a list of non-compliant resources:

SELECT
  configuration.targetResourceId,
  configuration.targetResourceType,
  configuration.complianceType,
  configuration.configRuleList
WHERE
  configuration.complianceType = 'NON_COMPLIANT'

This feature can be accessed via either the CLI, or through the AWS Console.

answered 7 months ago
EXPERT
reviewed 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions