Changing the recording frequency for the customer managed configuration recorder
AWS Config supports continuous recording and daily recording:
-
Continuous recording allows you to record configuration changes continuously whenever a change occurs.
-
Daily recording allows you to receive a configuration item (CI) representing the most recent state of your resources over the last 24-hour period, only if it’s different from the previous CI recorded. For more information see, Recording Frequency.
You can use the AWS Config console or the AWS CLI change the recording frequency.
- To change the recording frequency for the customer managed configuration recorder (Console)
-
Sign in to the AWS Management Console and open the AWS Config console at https://console.aws.amazon.com/config/
. -
Choose Settings in the navigation pane.
-
On the Customer managed recorder tab, choose Start recording.
-
For Recording method managed recorder, choose All resource types with customizable overrides.
-
For Default settings, choose a recording frequency.
-
Choose Save.
- To change the recording frequency (CLI)
-
Use the
put-configuration-recorder
command to change the recording frequency for the configuration recorder:$ aws configservice put-configuration-recorder \ --configuration-recorder
file://configurationRecorder.json
The
configurationRecorder.json
file specifiesname
androleArn
as well as the default recording frequency for the configuration recorder (recordingMode
). You can also use this field override the recording frequency for specific resource types.{ "name": "default", "roleARN": "
arn:aws:iam::123456789012:role/config-role
", "recordingMode": { "recordingFrequency":CONTINUOUS
orDAILY
, "recordingModeOverrides": [ { "description": "Description you provide for the override
", "recordingFrequency":CONTINUOUS
orDAILY
, "resourceTypes": [Comma-separated list of resource types to include in the override
] } ] } }put-configuration-recorder
uses the following fields for the--configuration-recorder
parameter:-
name
– The name of the configuration recorder. AWS Config automatically assigns the name of "default" when creating the configuration recorder. -
roleARN
– Amazon Resource Name (ARN) of the IAM role assumed by AWS Config and used by the configuration recorder. -
recordingMode
– Specifies the default recording frequency that AWS Config uses to record configuration changes. AWS Config supports Continuous recording and Daily recording. Continuous recording allows you to record configuration changes continuously whenever a change occurs. Daily recording allows you to receive a configuration item (CI) representing the most recent state of your resources over the last 24-hour period, only if it’s different from the previous CI recorded.-
recordingFrequency
– The default recording frequency that AWS Config uses to record configuration changes.Note
AWS Firewall Manager depends on continuous recording to monitor your resources. If you are using Firewall Manager, it is recommended that you set the recording frequency to Continuous.
-
recordingModeOverrides
– This field allows you to specify your overrides for the recording mode. It is an array ofrecordingModeOverride
objects. EachrecordingModeOverride
object in therecordingModeOverrides
array consists of three fields:-
description
– A description that you provide for the override. -
recordingFrequency
– The recording frequency that will be applied to all the resource types specified in the override. -
resourceTypes
– A comma-separated list that specifies which resource types AWS Config includes in the override.
-
-
Note
Required and optional fields
The
recordingMode
field forput-configuration-recorder
is optional. By default, the recording frequency for the configuration recorder is set to Continuous recording.Note
Limits
Daily recording is not supported for the following resource types:
-
AWS::Config::ResourceCompliance
-
AWS::Config::ConformancePackCompliance
-
AWS::Config::ConfigurationRecorder
For the Record all current and future supported resource types (
ALL_SUPPORTED_RESOURCE_TYPES
) recording strategy, these resource types will be set to Continuous recording. -