We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e854252 commit 13d4bbcCopy full SHA for 13d4bbc
services/ec2.sh
@@ -36,6 +36,19 @@ aws_ec2_reboot() {
36
aws_run_commandline "aws ec2 reboot-instances --instance-ids $instance_id"
37
}
38
39
+aws_ec2_stop() {
40
+ instance_id=$1
41
+ echo Stop the ec2 instance ${instance_id:?"The instace_id is unset or empty"}
42
+ aws_run_commandline "aws ec2 stop-instances --instance-ids $instance_id"
43
+}
44
+
45
+aws_ec2_start() {
46
47
+ echo start the ec2 instance ${instance_id:?"The instace_id is unset or empty"}
48
+ aws_run_commandline "aws ec2 start-instances --instance-ids $instance_id"
49
50
51
52
# Ec2 image
53
aws_ec2_list_images() {
54
aws_run_commandline "aws ec2 describe-images --owners self"
0 commit comments