|
15 | 15 | { "header": "CREATED", "json_path": "CreationTime", "width": 25 }, |
16 | 16 | { "header": "UPDATED", "json_path": "LastUpdatedTime", "width": 25 } |
17 | 17 | ], |
18 | | - "sub_resources": [], |
| 18 | + "sub_resources": [ |
| 19 | + { |
| 20 | + "shortcut": "e", |
| 21 | + "display_name": "Events", |
| 22 | + "resource_key": "cloudformation-events", |
| 23 | + "parent_id_field": "StackName", |
| 24 | + "filter_param": "stack_name" |
| 25 | + }, |
| 26 | + { |
| 27 | + "shortcut": "o", |
| 28 | + "display_name": "Outputs", |
| 29 | + "resource_key": "cloudformation-outputs", |
| 30 | + "parent_id_field": "StackName", |
| 31 | + "filter_param": "stack_name" |
| 32 | + } |
| 33 | + ], |
19 | 34 | "actions": [ |
20 | 35 | { "key": "ctrl+d", "display_name": "Delete Stack", "shortcut": "ctrl+d", "sdk_method": "delete_stack", "confirm": { "message": "Delete CloudFormation stack", "default_yes": false, "destructive": true } } |
21 | 36 | ], |
|
40 | 55 | "id_param": "StackName" |
41 | 56 | } |
42 | 57 | } |
| 58 | + }, |
| 59 | + "cloudformation-events": { |
| 60 | + "display_name": "Stack Events", |
| 61 | + "service": "cloudformation", |
| 62 | + "sdk_method": "describe_stack_events", |
| 63 | + "sdk_method_params": {}, |
| 64 | + "response_path": "events", |
| 65 | + "id_field": "EventId", |
| 66 | + "name_field": "LogicalResourceId", |
| 67 | + "is_global": false, |
| 68 | + "requires_parent": true, |
| 69 | + "preserve_order": true, |
| 70 | + "columns": [ |
| 71 | + { "header": "TIMESTAMP", "json_path": "Timestamp", "width": 22 }, |
| 72 | + { "header": "LOGICAL ID", "json_path": "LogicalResourceId", "width": 28 }, |
| 73 | + { "header": "STATUS", "json_path": "ResourceStatus", "width": 28, "color_map": "state" }, |
| 74 | + { "header": "TYPE", "json_path": "ResourceType", "width": 30 }, |
| 75 | + { "header": "REASON", "json_path": "ResourceStatusReason", "width": 40 } |
| 76 | + ], |
| 77 | + "sub_resources": [], |
| 78 | + "actions": [], |
| 79 | + "api_config": { |
| 80 | + "protocol": "query", |
| 81 | + "action": "DescribeStackEvents", |
| 82 | + "response_root": "/DescribeStackEventsResponse/DescribeStackEventsResult/StackEvents/member", |
| 83 | + "param_mapping": { |
| 84 | + "stack_name": "StackName" |
| 85 | + } |
| 86 | + }, |
| 87 | + "field_mappings": { |
| 88 | + "EventId": { "source": "/EventId", "default": "-" }, |
| 89 | + "StackName": { "source": "/StackName", "default": "-" }, |
| 90 | + "LogicalResourceId": { "source": "/LogicalResourceId", "default": "-" }, |
| 91 | + "PhysicalResourceId": { "source": "/PhysicalResourceId", "default": "-" }, |
| 92 | + "ResourceType": { "source": "/ResourceType", "default": "-" }, |
| 93 | + "ResourceStatus": { "source": "/ResourceStatus", "default": "-" }, |
| 94 | + "ResourceStatusReason": { "source": "/ResourceStatusReason", "default": "-" }, |
| 95 | + "Timestamp": { "source": "/Timestamp", "default": "-" } |
| 96 | + } |
| 97 | + }, |
| 98 | + "cloudformation-outputs": { |
| 99 | + "display_name": "Stack Outputs", |
| 100 | + "service": "cloudformation", |
| 101 | + "sdk_method": "describe_stacks", |
| 102 | + "sdk_method_params": {}, |
| 103 | + "response_path": "outputs", |
| 104 | + "id_field": "OutputKey", |
| 105 | + "name_field": "OutputKey", |
| 106 | + "is_global": false, |
| 107 | + "requires_parent": true, |
| 108 | + "columns": [ |
| 109 | + { "header": "KEY", "json_path": "OutputKey", "width": 50 }, |
| 110 | + { "header": "VALUE", "json_path": "OutputValue", "width": 50 } |
| 111 | + ], |
| 112 | + "sub_resources": [], |
| 113 | + "actions": [], |
| 114 | + "api_config": { |
| 115 | + "protocol": "query", |
| 116 | + "action": "DescribeStacks", |
| 117 | + "response_root": "/DescribeStacksResponse/DescribeStacksResult/Stacks/member/Outputs/member", |
| 118 | + "param_mapping": { |
| 119 | + "stack_name": "StackName" |
| 120 | + } |
| 121 | + }, |
| 122 | + "field_mappings": { |
| 123 | + "OutputKey": { "source": "/OutputKey", "default": "-" }, |
| 124 | + "OutputValue": { "source": "/OutputValue", "default": "-" }, |
| 125 | + "Description": { "source": "/Description", "default": "-" }, |
| 126 | + "ExportName": { "source": "/ExportName", "default": "-" } |
| 127 | + } |
43 | 128 | } |
44 | 129 | } |
45 | 130 | } |
0 commit comments