Skip to content

Commit 313c0c3

Browse files
LeoVenLeonardo Vencovskyalexpasmantier
authored
feat(cable): Channels for AWS Buckets and Instances (#647)
## 📺 PR Description Added `aws-buckets` and `aws-instances` channels. ## Checklist - [x] my commits **and PR title** follow the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) format - [ ] if this is a new feature, I have added tests to consolidate the feature and prevent regressions - [ ] if this is a bug fix, I have added a test that reproduces the bug (if applicable) - [ ] I have added a reasonable amount of documentation to the code where appropriate --------- Co-authored-by: Leonardo Vencovsky <[email protected]> Co-authored-by: alexandre pasmantier <[email protected]>
1 parent 07853f0 commit 313c0c3

File tree

5 files changed

+239
-81
lines changed

5 files changed

+239
-81
lines changed

assets/tv-aws-buckets.png

415 KB
Loading

cable/unix/aws-buckets.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[metadata]
2+
name = "aws-buckets"
3+
description = "List and preview AWS S3 Buckets"
4+
requirements = ["aws"]
5+
6+
[source]
7+
command = "aws s3 ls --output text"
8+
output = "{split: :3|trim}"
9+
10+
[preview]
11+
command = "aws s3 ls s3://{split: :3|trim} --human-readable --summarize"
12+
13+
[ui.preview_panel]
14+
size = 60

cable/unix/aws-instances.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[metadata]
2+
name = "aws-instances"
3+
description = "List and preview AWS EC2 Instances"
4+
requirements = ["aws"]
5+
6+
[source]
7+
command = "aws ec2 describe-instances --output text --query \"Reservations[*].Instances[*].[InstanceId,Tags[?Key=='Name']|[0].Value]\""
8+
9+
[preview]
10+
command = "aws ec2 describe-instances --output json --instance-ids {split:\t:0} --query 'Reservations[*].Instances[0]'"
11+
12+
[ui.preview_panel]
13+
size = 60

0 commit comments

Comments
 (0)