DiscoverResourceRelationships
Discover dependencies and relationships for an AWS resource via AWS Config to map connections such as subnet placement or attached security groups.
Instructions
Discover relationships for a specific AWS resource using AWS Config.
This tool retrieves the configuration history for a specific AWS resource
and returns its relationships with other resources. This is useful for
understanding resource dependencies, such as finding which subnet an ALB
is placed in or which security groups are attached to an instance.
Args:
ctx: The MCP context for logging and communication
resource_type: AWS resource type (e.g., AWS::EC2::Instance)
resource_id: AWS resource ID to discover relationships for
limit: Maximum number of configuration items to retrieve
chronological_order: Order of configuration items (Reverse or Forward)
Returns:
Dict containing resource relationships and configuration details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of configuration items to retrieve | |
| resource_id | Yes | AWS resource ID to discover relationships for | |
| resource_type | Yes | AWS resource type (e.g., AWS::EC2::Instance, AWS::ElasticLoadBalancingV2::LoadBalancer) | |
| chronological_order | No | Order of configuration items (Reverse or Forward) | Reverse |