- Newest
- Most votes
- Most comments
Hello.
I tried configuring it in my environment using the same template as yours, but I couldn't configure it unless "IncludeGlobalResourceTypes" was false.
After setting it to false and deploying the template, I was able to configure the settings as shown below. (To keep costs down, the interval has been changed to DAILY.)
aws configservice describe-configuration-recorders
{
"ConfigurationRecorders": [
{
"arn": "arn:aws:config:ap-northeast-1:123456789012:configuration-recorder/default/yyyyyyyyyyyyy",
"name": "default",
"roleARN": "arn:aws:iam::123456789012:role/aws-service-role/config.amazonaws.com/AWSServiceRoleForConfig",
"recordingGroup": {
"allSupported": false,
"includeGlobalResourceTypes": false,
"resourceTypes": [
"AWS::S3::Bucket",
"AWS::EC2::Instance"
],
"exclusionByResourceTypes": {
"resourceTypes": []
},
"recordingStrategy": {
"useOnly": "INCLUSION_BY_RESOURCE_TYPES"
}
},
"recordingMode": {
"recordingFrequency": "DAILY",
"recordingModeOverrides": [
{
"resourceTypes": [
"AWS::S3::Bucket",
"AWS::EC2::Instance"
],
"recordingFrequency": "DAILY"
}
]
},
"recordingScope": "PAID"
}
]
}
As explained in the document below, "IncludeGlobalResourceTypes" is used to also record IAM settings, so in your case I think it needs to be set to false since you are only recording S3 and EC2.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationrecorder-recordinggroup.html#cfn-config-configurationrecorder-recordinggroup-includeglobalresourcetypes
This option is a bundle which only applies to the global IAM resource types: IAM users, groups, roles, and customer managed policies. These global IAM resource types can only be recorded by AWS Config in Regions where AWS Config was available before February 2022. You cannot be record the global IAM resouce types in Regions supported by AWS Config after February 2022. This list where you cannot record the global IAM resource types includes the following Regions:
Relevant content
asked 3 years ago
asked 3 years ago
asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
