0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ECSで建てたRedashでコマンドを叩きたい

Posted at

前提

  • AWS CLI を使う

準備

  • AWS Session Manager Plugin をインストールする

実行手順

  1. AWS コンソールとかから、ECSの該当クラスターのタスクIDを取ってくる
  2. aws ecs execute-commandを投げる
aws ecs execute-command --cluster hoge-cluster --task 999999999999999999999999999999db --interactive --command /bin/sh --container piyo-container

  1. Session Managerからコマンドが打てるようになる

The Session Manager plugin was installed successfully. Use the AWS CLI to start a session.
Starting session with SessionId: ecs-execute-command-xxxxxxxxxxxxxxxxxxxxxxxxxx
#

サンプルコマンド

  • ユーザ追加
./manage.py users create hoge-user1@example.com "ユーザ1"  --password p@ssword
  • ユーザのパスワード変更
./manage.py users password hoge-user1@example.com p@ssword1
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?