Skip to content

Commit 5d9c44f

Browse files
committed
Use the correct option for describe-services
1 parent 7fc4f2b commit 5d9c44f

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

hooks/command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ aws ecs wait services-stable \
189189
service_events=$(aws ecs describe-services \
190190
${aws_default_args[@]+"${aws_default_args[@]}"} \
191191
--cluster "${cluster}" \
192-
--service "${service_name}" \
192+
--services "${service_name}" \
193193
--query 'services[].events' --output text)
194194

195195
if [[ $deploy_exitcode -eq 0 ]]; then

tests/command.bats

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ setup() {
2020
"ecs register-task-definition --family hello-world --container-definitions \* : echo '{\"taskDefinition\":{\"revision\":1}}'" \
2121
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
2222
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
23-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
23+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
2424

2525
run "$PWD/hooks/command"
2626

@@ -43,7 +43,7 @@ setup() {
4343
"ecs register-task-definition --family hello-world --container-definitions $'$expected_multiple_container_definition' : echo '{\"taskDefinition\":{\"revision\":1}}'" \
4444
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
4545
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
46-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
46+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
4747

4848
run "$PWD/hooks/command"
4949

@@ -69,7 +69,7 @@ setup() {
6969
"ecs register-task-definition --family hello-world --container-definitions \* : echo \"\$6\" > ${_TMP_DIR}/container_definition ; echo '{\"taskDefinition\":{\"revision\":1}}'" \
7070
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
7171
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
72-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
72+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
7373

7474
run "$PWD/hooks/command"
7575

@@ -96,7 +96,7 @@ setup() {
9696
"ecs register-task-definition --family hello-world --container-definitions \* --task-role-arn arn:aws:iam::012345678910:role/world : echo '{\"taskDefinition\":{\"revision\":1}}'" \
9797
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
9898
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
99-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
99+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
100100

101101
run "$PWD/hooks/command"
102102

@@ -114,7 +114,7 @@ setup() {
114114
"ecs register-task-definition --family hello-world --container-definitions \* --execution-role-arn arn:aws:iam::012345678910:role/world : echo '{\"taskDefinition\":{\"revision\":1}}'" \
115115
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
116116
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
117-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
117+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
118118

119119
run "$PWD/hooks/command"
120120

@@ -133,7 +133,7 @@ setup() {
133133
"ecs register-task-definition --region custom-region --family hello-world --container-definitions \* : echo '{\"taskDefinition\":{\"revision\":1}}'" \
134134
"ecs update-service --region custom-region --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
135135
"ecs wait services-stable --region custom-region --cluster my-cluster --services my-service : echo ok" \
136-
"ecs describe-services --region custom-region --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
136+
"ecs describe-services --region custom-region --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
137137

138138
run "$PWD/hooks/command"
139139

tests/deprecated-options.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ setup() {
4545
"ecs register-task-definition --family hello-world --container-definitions \* : echo '{\"taskDefinition\":{\"revision\":1}}'" \
4646
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
4747
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
48-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
48+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
4949

5050
run "$PWD/hooks/command"
5151

tests/existing-data.bats

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ setup() {
1919
"ecs register-task-definition --family hello-world --container-definitions \* : echo '{\"taskDefinition\":{\"revision\":1}}'" \
2020
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
2121
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
22-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
22+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
2323

2424
run "$PWD/hooks/command"
2525

@@ -39,7 +39,7 @@ setup() {
3939
"ecs register-task-definition --family hello-world --container-definitions \* : echo '{\"taskDefinition\":{\"revision\":1}}'" \
4040
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
4141
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
42-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
42+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
4343

4444
run "$PWD/hooks/command"
4545

@@ -63,7 +63,7 @@ setup() {
6363
"ecs register-task-definition --family hello-world --container-definitions \* : echo \"\$6\" > ${_TMP_DIR}/container_definition ; echo '{\"taskDefinition\":{\"revision\":1}}'" \
6464
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
6565
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
66-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
66+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
6767

6868
run "$PWD/hooks/command"
6969

@@ -90,7 +90,7 @@ setup() {
9090
"ecs register-task-definition --family hello-world --container-definitions \* --task-role-arn arn:aws:iam::012345678910:role/world : echo '{\"taskDefinition\":{\"revision\":1}}'" \
9191
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
9292
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
93-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
93+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
9494

9595
run "$PWD/hooks/command"
9696

@@ -108,7 +108,7 @@ setup() {
108108
"ecs register-task-definition --family hello-world --container-definitions \* --execution-role-arn arn:aws:iam::012345678910:role/world : echo '{\"taskDefinition\":{\"revision\":1}}'" \
109109
"ecs update-service --cluster my-cluster --service my-service --task-definition hello-world:1 : echo ok" \
110110
"ecs wait services-stable --cluster my-cluster --services my-service : echo ok" \
111-
"ecs describe-services --cluster my-cluster --service my-service --query 'services[].events' --output text : echo ok"
111+
"ecs describe-services --cluster my-cluster --services my-service --query 'services[].events' --output text : echo ok"
112112

113113
run "$PWD/hooks/command"
114114

0 commit comments

Comments
 (0)