Importing ConfigRule via CloudFormation

0

I am receiving the below error whilst importing a CloudFormation template and matching it with the corresponding ARN:

one or more configrules provided in the request are invalid. please check the configrule names. (service: config, status code: 400, request id: f05586e8-4430-4902-96eb-4bd3d28b9809)

profile picture
asked 2 months ago105 views
1 Answer
0

The error indicates that one or more of the ConfigRules provided in the CloudFormation template are invalid. A few things you can check:

Verify the ConfigRule names specified in the template match existing rules in AWS Config.

Check that the rules are defined for the same region where you are deploying the CloudFormation stack.

Make sure any nested objects like ruleScope are defined correctly.

You can get the list of existing ConfigRules using the AWS CLI:


aws configservice describe-config-rules

Compare the rule names in the output to what is specified in the template. Updating the template with valid rule names should resolve the error.

profile picture
EXPERT
answered 2 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