Help us understand the problem. What is going on with this article?

Fargateの「コマンドの上書き」でのオプションの設定方法

More than 1 year has passed since last update.

AWSのコンソール画面でFargateのタスクを実行する際に
「コマンドの上書き」でオプションを付与したかったが、少しハマったのでメモ。

やりたいこと

下記は実行したいコンテナのDockerfileの一部

ENTRYPOINT ["python", "index.py"]
CMD ["--date", ""]

Fargateでのタスク実行時に

--date 20181002

という感じのオプションを付与したい。

「コマンドの上書き」の記載方法

結論から言うと
タスク実行の設定画面の「コマンドの上書き」欄に

--date,20181002

と記載するだけであった。

スクリーンショット 2018-10-02 14.11.41.png

カンマの後ろに余計な空白があるとその空白もオプションの一部として認識されてしまったので注意。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away