mastodon-on-aws
mastodon-on-aws copied to clipboard
Access to the CLI
Once the server is deployed and working how do I access the CLI commands to set things like sever owner etc.
Have you tried this? https://github.com/widdix/mastodon-on-aws#administration
I tried but wasn't sure what the taskID referred to.
Thanks for bringing this up, @jobyid. I'm currently improving the docs. In the meantime please use the following instructions.
Use the following instructions to access the Mastodon CLI:
- Open Elastic Container Service (ECS) via the AWS Management Console.
- Selct the ECS cluster with the name prefixed with the name of your CloudFormation stack (e.g.,
mastodon-on-aws-*
). - Note down the full name of the cluster (e.g.,
mastodon-on-aws-Cluster-1NHBMI9NL62QP-Cluster-pkxgiUVXxLC7
). - Select the
Tasks
tab. - Search for a task with status
Running
and a task definition containing*-WebService-*
in its name. - Note down the task ID (e.g.,
a752b99a4cf843ce8a957c374fc98abf
). - Install the AWS CLI.
Use the following command to connect with the container running the Ruby on Rails (Web) application. Replace <CLUSTER_NAME> with the name of your ECS cluster and <TASK_ID> with the ID of a running ECS task.
aws ecs execute-command --cluster <CLUSTER_NAME> --container app --command /bin/bash --interactive --task <TASK_ID>
After the session got established you are ready to use the tootctl.