質問編集履歴
2
追記1
test
CHANGED
File without changes
|
test
CHANGED
@@ -293,3 +293,129 @@
|
|
293
293
|
アドバイスを頂けますと幸いです。
|
294
294
|
|
295
295
|
宜しくお願い致します。
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
### 追記
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
5/24
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
失敗したジョブのコンテナにSSH接続し、コマンドを実行してみました。
|
308
|
+
|
309
|
+
結果、問題なくコマンドを実行できました。
|
310
|
+
|
311
|
+
なぜ、CircleCIのジョブで実行すると完了しないのでしょうか?
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
実行コマンド
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
`ssh -p xxxxx xxx.xxx.xxx.xxx`
|
320
|
+
|
321
|
+
`aws ecs start-task --cluster $AWS_ECS_ARN --container-instances $AWS_ECS_ContainerInstance_ID --task-definition task:3`
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
実行結果
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
```
|
330
|
+
|
331
|
+
circleci@12345hoge:~$ aws ecs start-task --cluster $AWS_ECS_ARN --container-instances $AWS_ECS_ContainerInstance_ID --task-definition task:3
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
{
|
336
|
+
|
337
|
+
"tasks": [
|
338
|
+
|
339
|
+
{
|
340
|
+
|
341
|
+
"attachments": [],
|
342
|
+
|
343
|
+
"availabilityZone": "ap-northeast-1c",
|
344
|
+
|
345
|
+
"clusterArn": "arn:aws:ecs:ap-northeast-1:1234567:cluster/hoge-Cruster",
|
346
|
+
|
347
|
+
"containerInstanceArn": "arn:aws:ecs:ap-northeast-1:1234567:container-instance/d4926f34-...",
|
348
|
+
|
349
|
+
"containers": [
|
350
|
+
|
351
|
+
{
|
352
|
+
|
353
|
+
"containerArn": "arn:aws:ecs:ap-northeast-1:1234567:container/359287c3-...",
|
354
|
+
|
355
|
+
"taskArn": "arn:aws:ecs:ap-northeast-1:1234567:task/bfa81a83-...",
|
356
|
+
|
357
|
+
"name": "task",
|
358
|
+
|
359
|
+
"image": "1234567.dkr.ecr.ap-northeast-1.amazonaws.com/task:b905234...",
|
360
|
+
|
361
|
+
"lastStatus": "PENDING",
|
362
|
+
|
363
|
+
"networkInterfaces": [],
|
364
|
+
|
365
|
+
"cpu": "0"
|
366
|
+
|
367
|
+
}
|
368
|
+
|
369
|
+
],
|
370
|
+
|
371
|
+
"cpu": "256",
|
372
|
+
|
373
|
+
"createdAt": "2020-05-24T03:16:21.494000+00:00",
|
374
|
+
|
375
|
+
"desiredStatus": "RUNNING",
|
376
|
+
|
377
|
+
"group": "family:task",
|
378
|
+
|
379
|
+
"lastStatus": "PENDING",
|
380
|
+
|
381
|
+
"launchType": "EC2",
|
382
|
+
|
383
|
+
"memory": "256",
|
384
|
+
|
385
|
+
"overrides": {
|
386
|
+
|
387
|
+
"containerOverrides": [
|
388
|
+
|
389
|
+
{
|
390
|
+
|
391
|
+
"name": "taks"
|
392
|
+
|
393
|
+
}
|
394
|
+
|
395
|
+
],
|
396
|
+
|
397
|
+
"inferenceAcceleratorOverrides": []
|
398
|
+
|
399
|
+
},
|
400
|
+
|
401
|
+
"tags": [],
|
402
|
+
|
403
|
+
"taskArn": "arn:aws:ecs:ap-northeast-1:1234567:task/bfa81a83-...",
|
404
|
+
|
405
|
+
"taskDefinitionArn": "arn:aws:ecs:ap-northeast-1:1234567:task-definition/task:3",
|
406
|
+
|
407
|
+
"version": 1
|
408
|
+
|
409
|
+
}
|
410
|
+
|
411
|
+
],
|
412
|
+
|
413
|
+
"failures": []
|
414
|
+
|
415
|
+
}
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
circleci@12345hoge:~$
|
420
|
+
|
421
|
+
```
|
1
タイトルを修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
[AWS CLI
|
1
|
+
[AWS CLI] CircleCI で aws ecs start-task コマンドを使用した際にジョブが完了しない
|
test
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
version: 2.1
|
78
78
|
|
79
|
-
t
|
79
|
+
run_task:
|
80
80
|
|
81
81
|
jobs:
|
82
82
|
|