Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Changing Recording Frequency
Amazon 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 Amazon Config console or the Amazon CLI change the recording frequency.
- To change the recording frequency (Console)
-
Sign in to the Amazon Web Services Management Console and open the Amazon Config console at
https://console.amazonaws.cn/config/.
-
Choose Settings in the navigation pane.
-
Choose Edit to view the options under "Recording frequency".
- 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 specifies name
and roleArn
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
or DAILY
,
"recordingModeOverrides": [
{
"description": "Description you provide for the override
",
"recordingFrequency": CONTINUOUS
or DAILY
,
"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. Amazon Config automatically assigns the name of "default" when creating the configuration recorder.
roleARN
– Amazon Resource Name (ARN) of the IAM role assumed by Amazon Config and used by the configuration recorder.
recordingMode
– Specifies the default recording frequency that Amazon Config uses to record configuration changes.
Amazon 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 Amazon Config uses to record configuration changes.
Amazon 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 of recordingModeOverride
objects. Each recordingModeOverride
object in the recordingModeOverrides
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 Amazon Config includes in the override.
Required and optional fields
The recordingMode
field for put-configuration-recorder
is optional. By default, the recording frequency for the configuration recorder is set to Continuous recording.
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.