Skip to content

Resource Groups

CloudMock emulates AWS Resource Groups, supporting group management, resource grouping, search, and tagging.

OperationStatusNotes
CreateGroupSupportedCreates a resource group
GetGroupSupportedReturns group details
ListGroupsSupportedLists all groups
UpdateGroupSupportedUpdates a group
DeleteGroupSupportedDeletes a group
GroupResourcesSupportedAdds resources to a group
UngroupResourcesSupportedRemoves resources from a group
ListGroupResourcesSupportedLists resources in a group
SearchResourcesSupportedSearches for resources
GetTagsSupportedReturns tags for a group
TagResourceSupportedAdds tags to a group
UntagResourceSupportedRemoves tags from a group
import { ResourceGroupsClient, CreateGroupCommand } from '@aws-sdk/client-resource-groups';
const client = new ResourceGroupsClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new CreateGroupCommand({
Name: 'my-group',
ResourceQuery: {
Type: 'TAG_FILTERS_1_0',
Query: JSON.stringify({ ResourceTypeFilters: ['AWS::AllSupported'], TagFilters: [{ Key: 'env', Values: ['prod'] }] }),
},
}));
import boto3
import json
client = boto3.client('resource-groups',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.create_group(
Name='my-group',
ResourceQuery={
'Type': 'TAG_FILTERS_1_0',
'Query': json.dumps({'ResourceTypeFilters': ['AWS::AllSupported'], 'TagFilters': [{'Key': 'env', 'Values': ['prod']}]}),
})
cloudmock.yml
services:
resourcegroups:
enabled: true
  • Resource queries are stored but dynamic tag-based discovery is limited
  • SearchResources returns manually grouped resources only
  • Cross-service resource discovery is not implemented