File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Setting for ecs
4- aws_application_autoscaling_ecs () {
4+ aws_application_autoscaling_ecs_list_scheduled_actions () {
55 aws application-autoscaling describe-scheduled-actions \
66 --service-namespace ecs
77}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ aws_ecs_get_service_with_hint() {
4242
4343}
4444
45- aws_ecs_get_scheduled_actions () {
45+ aws_ecs_list_scheduled_actions () {
4646
4747 aws_run_commandline \
4848 "
@@ -51,6 +51,16 @@ aws_ecs_get_scheduled_actions() {
5151 "
5252}
5353
54+ aws_ecs_list_scaling_policies () {
55+ # TODO Later
56+ aws_run_commandline " \
57+ aws application-autoscaling describe-scaling-policies \
58+ --service-namespace ecs --query '*[].Alarms[0].AlarmName' \
59+ --output text | xargs aws cloudwatch describe-alarms --alarm-names
60+ "
61+
62+ }
63+
5464aws_ecs_get_taskdefinition () {
5565 aws_task_definition_arn=$1
5666 aws_run_commandline " \
You can’t perform that action at this time.
0 commit comments