Help! How do you turn off AWS config!

0

Hi,
I wanted to learn about AWS config so I started it with some rules. Then I got the bill so I decided to stop the service but I can't seem to. I stopped recording and I have no rules running but I still get billed for $4.00 per month.

It seems like config is easy to turn on but not so easy to off.

질문됨 5년 전11545회 조회
6개 답변
3
  1. Turn off Recording for that region using the console

  2. Delete the Rule by going to actions, delete rule

  3. Use the AWS CLI and delete the default recording by

aws configservice delete-configuration-recorder --configuration-recorder-name default --region <region-name>

  1. Delete the service linked role created for AWS Config

Refresh the Config home page to make it appear fresh.

If necessary delete the config bucket and its objects.

Edited by: ecooper on Sep 18, 2021 10:28 AM

ecooper
답변함 3년 전
1

AWS CLI:
aws configservice describe-config-rules | grep ConfigRuleName | cut -d":" -f2 | cut -d"," -f1 | xargs -L1 aws configservice delete-config-rule --config-rule-name

답변함 3년 전
  • It worked very well. Thank you, iothreat1.

0

I had to use CLI to remove all the rules. Just executed - will see how it affects billing tonight.

P.S. instead of grep/awk feel free to use --query parameter of aws command
https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-output.html

aws configservice describe-config-rules | grep ConfigRuleName | gawk &#39;match($0, /:.+"(.+)"/, a) {print a[1]}&#39; | while read rule_name; 
do 
	echo $rule_name; 
	aws configservice delete-config-rule --config-rule-name $rule_name
done
eugenj
답변함 4년 전
0

In your billing console, you can view what charges are still being applied. It is possible that the Config recording is still turned on. This is the capability that records the resource configuration changes and provides the trigger for change triggerd/ hybrid rules to evaluate when there are resource specific changes.

You can find steps to manage the Config recorder https://docs.aws.amazon.com/config/latest/developerguide/stop-start-recorder.html .

답변함 4년 전
0

One last thing that was needed in my case was to disable trusted access with AWS Config, from Organization. https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-config.html#integrate-disable-ta-config Basically:

aws organizations disable-aws-service-access --service-principal config.amazonaws.com

And apparently CloudTrail needs to be disabled as well: https://stackoverflow.com/questions/67494322/how-do-i-unsubscribe-my-aws-organization-from-cloudtrail

Fawad
답변함 8달 전
-1

In Console,

  1. Go to the setting page of config and disable recorder.
  2. Delete all the config rules you will be fine now
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠