Skip to content

Commit f53064b

Browse files
committed
feat: cloudformation resources
1 parent 5599362 commit f53064b

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

src/resources/cloudformation.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
"resource_key": "cloudformation-outputs",
3030
"parent_id_field": "StackName",
3131
"filter_param": "stack_name"
32+
},
33+
{
34+
"shortcut": "r",
35+
"display_name": "Resources",
36+
"resource_key": "cloudformation-resources",
37+
"parent_id_field": "StackName",
38+
"filter_param": "stack_name"
3239
}
3340
],
3441
"actions": [
@@ -125,6 +132,42 @@
125132
"Description": { "source": "/Description", "default": "-" },
126133
"ExportName": { "source": "/ExportName", "default": "-" }
127134
}
135+
},
136+
"cloudformation-resources": {
137+
"display_name": "Stack Resources",
138+
"service": "cloudformation",
139+
"sdk_method": "list_stack_resources",
140+
"sdk_method_params": {},
141+
"response_path": "resources",
142+
"id_field": "LogicalResourceId",
143+
"name_field": "LogicalResourceId",
144+
"is_global": false,
145+
"requires_parent": true,
146+
"columns": [
147+
{ "header": "LOGICAL ID", "json_path": "LogicalResourceId", "width": 30 },
148+
{ "header": "PHYSICAL ID", "json_path": "PhysicalResourceId", "width": 30 },
149+
{ "header": "TYPE", "json_path": "ResourceType", "width": 35 },
150+
{ "header": "STATUS", "json_path": "ResourceStatus", "width": 28, "color_map": "state" },
151+
{ "header": "UPDATED", "json_path": "LastUpdatedTimestamp", "width": 22 }
152+
],
153+
"sub_resources": [],
154+
"actions": [],
155+
"api_config": {
156+
"protocol": "query",
157+
"action": "ListStackResources",
158+
"response_root": "/ListStackResourcesResponse/ListStackResourcesResult/StackResourceSummaries/member",
159+
"param_mapping": {
160+
"stack_name": "StackName"
161+
}
162+
},
163+
"field_mappings": {
164+
"LogicalResourceId": { "source": "/LogicalResourceId", "default": "-" },
165+
"PhysicalResourceId": { "source": "/PhysicalResourceId", "default": "-" },
166+
"ResourceType": { "source": "/ResourceType", "default": "-" },
167+
"ResourceStatus": { "source": "/ResourceStatus", "default": "-" },
168+
"ResourceStatusReason": { "source": "/ResourceStatusReason", "default": "-" },
169+
"LastUpdatedTimestamp": { "source": "/LastUpdatedTimestamp", "default": "-" }
170+
}
128171
}
129172
}
130173
}

0 commit comments

Comments
 (0)