Skip to content

Config

CloudMock emulates AWS Config, supporting config rules, configuration recorders, delivery channels, compliance evaluation, and conformance packs.

OperationStatusNotes
PutConfigRuleSupportedCreates or updates a config rule
DescribeConfigRulesSupportedLists config rules
DeleteConfigRuleSupportedDeletes a config rule
PutConfigurationRecorderSupportedCreates or updates a configuration recorder
DescribeConfigurationRecordersSupportedLists configuration recorders
DeleteConfigurationRecorderSupportedDeletes a configuration recorder
PutDeliveryChannelSupportedCreates or updates a delivery channel
DescribeDeliveryChannelsSupportedLists delivery channels
DeleteDeliveryChannelSupportedDeletes a delivery channel
StartConfigurationRecorderSupportedStarts recording
StopConfigurationRecorderSupportedStops recording
GetComplianceDetailsByConfigRuleSupportedReturns compliance details
DescribeComplianceByConfigRuleSupportedReturns compliance summary by rule
PutConformancePackSupportedCreates or updates a conformance pack
DescribeConformancePacksSupportedLists conformance packs
DeleteConformancePackSupportedDeletes a conformance pack
PutEvaluationsSupportedSubmits evaluation results
import { ConfigServiceClient, PutConfigRuleCommand } from '@aws-sdk/client-config-service';
const client = new ConfigServiceClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new PutConfigRuleCommand({
ConfigRule: {
ConfigRuleName: 's3-bucket-versioning',
Source: { Owner: 'AWS', SourceIdentifier: 'S3_BUCKET_VERSIONING_ENABLED' },
},
}));
import boto3
client = boto3.client('config',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.put_config_rule(ConfigRule={
'ConfigRuleName': 's3-bucket-versioning',
'Source': {'Owner': 'AWS', 'SourceIdentifier': 'S3_BUCKET_VERSIONING_ENABLED'},
})
cloudmock.yml
services:
config:
enabled: true
  • Config rules do not evaluate resources automatically
  • Configuration recorder does not capture real resource changes
  • Compliance results are based on submitted evaluations only