Skip to content

Commit 2b7ea3b

Browse files
committed
[Improvement] - functions for ec2 with aws_ec2_rm_instruction_with_hint and update show describe filed for aws_ec2_list_images
1 parent 9482bac commit 2b7ea3b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

services/ec2.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ aws_ec2_rm_instruction() {
6969
"
7070
}
7171

72+
aws_ec2_rm_instruction_with_hint() {
73+
aws_commandline_logging "\
74+
aws ec2 terminate-instances \
75+
--instance-ids $(local_aws_ec2_instance_id_peco_menu)
76+
"
77+
}
78+
7279
# Ec2 image
7380
aws_ec2_list_images() {
7481
aws_run_commandline "aws ec2 describe-images --owners self"
@@ -82,7 +89,7 @@ aws_ec2_list_aws_default_images() {
8289
'Name=block-device-mapping.volume-type,Values=gp2' \
8390
'Name=ena-support,Values=true' 'Name=owner-alias,Values=amazon' \
8491
'Name=name,Values=*amzn2-ami-hvm-2.0.????????.?-x86_64-gp2' \
85-
--query 'Images[*].[ImageId,Name]' --output text
92+
--query 'Images[*].[ImageId,Name,Description]' --output table
8693
"
8794
}
8895
aws_ec2_create_image() {

0 commit comments

Comments
 (0)