simplestarの技術ブログ

目的を書いて、思想と試行、結果と考察、そして具体的な手段を記録します。

2020-05-01から1ヶ月間の記事一覧

Python:コマンドの実行と標準出力文字列の取得+aws cli 呼び出し例

aws cli を呼べる環境なら、次の pthon で動作中の task arn を for 文で処理できるよ import subprocess import json from typing import Union, List def callCommand(commands: List[str]) -> str: """ コマンド呼び出しと標準出力文字列を返す """ cmd =…