# name: aws-ec2-get-instances
# key: aws-ec2-get-instances
# --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ec2 describe-instances --query 'Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone]' --output ${3:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ec2 describe-instances --query 'Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(\`,\`,Tags[?Key==\`Schedule\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone]' --output ${2:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
--- /dev/null
+# -*- mode: snippet -*-
+# name: aws-ec2-start-stop-instance
+# key: aws-ec2-start_stop-instance
+# --
+aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ec2 ${2:$$(yas-choose-value '("start-instances" "stop-instances"))} --instance-ids ${3:`(yank)`} $0
\ No newline at end of file