# -*- mode: snippet -*-
-# name: aws-ec2-describe-instance-status
+# name: aws-ec2-describe-instance-status (yank)
# key: aws-ec2-describe-instance-status
# --
aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instance-status --instance-ids ${4:`(yank)`} $0
\ No newline at end of file
# -*- mode: snippet -*-
-# name: aws-ec2-get-console-output
+# name: aws-ec2-get-console-output (yank)
# key: aws-ec2-get-console-output
# --
aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 get-console-output --instance-id ${4:`(yank)`} $0
\ No newline at end of file
# -*- mode: snippet -*-
-# name: aws-ec2-get-instance-details
+# name: aws-ec2-get-instance-details (yank)
# key: aws-ec2-get-instance-details
# --
aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --instance-ids ${4:`(yank)`} $0
\ No newline at end of file
# -*- mode: snippet -*-
-# name: aws-ec2-start-stop-instance
+# name: aws-ec2-start-stop-instance (yank)
# key: aws-ec2-start_stop-instance
# --
aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 ${4:$$(yas-choose-value '("start-instances" "stop-instances"))} --instance-ids ${5:`(yank)`} $0
\ No newline at end of file
# -*- mode: snippet -*-
-# name: aws-elb-describe-instance-health
+# name: aws-elb-describe-instance-health (yank)
# key: aws-elb-describe-instance-health
# --
aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-instance-health --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
# -*- mode: snippet -*-
-# name: aws-elb-describe-load-balancer
+# name: aws-elb-describe-load-balancer (yank)
# key: aws-elb-describe-load-balancer
# --
aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-load-balancers --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
# -*- mode: snippet -*-
-# name: aws-elb-describe-load-balancer-attributes
+# name: aws-elb-describe-load-balancer-attributes (yank)
# key: aws-elb-describe-load-balancer-attributes
# --
aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-load-balancer-attributes --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
# -*- mode: snippet -*-
-# name: aws-rds-describe-parameters
+# name: aws-rds-describe-parameters (yank)
# key: aws-rds-describe-parameters
# --
aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} rds describe-db-parameters --db-parameter-group-name ${4:`(yank)`} --query "Parameters[*][ParameterName, ParameterValue]" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
# -*- mode: snippet -*-
-# name: aws-route53-list-resource-record-sets
+# name: aws-route53-list-resource-record-sets (yank)
# key: aws-route53-list-resource-record-sets
# --
aws --profile=${1:$$(yas-choose-value '("prod" "test"))} route53 list-resource-record-sets --hosted-zone-id ${2:`(yank)`} --query \"ResourceRecordSets[?contains(Name, '$3')].Name\" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
--- /dev/null
+# -*- mode: snippet -*-
+# name: if
+# key: <if
+# --
+<% if $1 -%>
+$0
+<% end -%>
\ No newline at end of file