Skip to content

Moodle Connexion

Install the SSM CLI en Ubuntu

1. Download ssm plugin

Terminal window
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"

2. Install ssm plugin

Terminal window
sudo dpkg -i session-manager-plugin.deb

3. Verify ssm plugin instalation

Terminal window
session-manager-plugin --version

Install the SSM CLI en Windows

1. Download ssm installer

Terminal window
https://s3.amazonaws.com/session-manager-downloads/plugin/latest/windows/SessionManagerPluginSetup.exe

2. Download ssm intaller in zip

Terminal window
https://s3.amazonaws.com/session-manager-downloads/plugin/latest/windows/SessionManagerPlugin.zip

3. Install ssm plugin

Execute SessionManagerPluginSetup.exe Follow the instructions

3. Verify ssm plugin instalation

Open windows CMD and execute the command.

Terminal window
session-manager-plugin --version

Connect to the Container

Test Connect

Terminal window
TASK_ID=$(aws ecs list-tasks --cluster ae-test-moodle_cluster --desired-status running --profile test | jq -r '.taskArns[0] | split("/")[-1]')
echo $TASK_ID
aws ecs execute-command --cluster ae-test-moodle_cluster --task $TASK_ID --container ae-test-moodle_container --command "bash" --interactive --profile test

Prod Connect

Terminal window
TASK_ID=$(aws ecs list-tasks --cluster ae-moodle_cluster --desired-status running --profile prod | jq -r '.taskArns[0] | split("/")[-1]')
aws ecs execute-command --cluster ae-moodle_cluster --task $TASK_ID --container ae-moodle_container --command "bash" --interactive --profile prod