Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to the CLI #6

Open
jobyid opened this issue Nov 20, 2022 · 3 comments
Open

Access to the CLI #6

jobyid opened this issue Nov 20, 2022 · 3 comments
Labels
question Further information is requested

Comments

@jobyid
Copy link

jobyid commented Nov 20, 2022

Once the server is deployed and working how do I access the CLI commands to set things like sever owner etc.

@michaelwittig
Copy link
Contributor

@michaelwittig michaelwittig added the question Further information is requested label Nov 21, 2022
@jobyid
Copy link
Author

jobyid commented Nov 21, 2022

I tried but wasn't sure what the taskID referred to.

@andreaswittig
Copy link
Contributor

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:

  1. Open Elastic Container Service (ECS) via the AWS Management Console.
  2. Selct the ECS cluster with the name prefixed with the name of your CloudFormation stack (e.g., mastodon-on-aws-*).
  3. Note down the full name of the cluster (e.g., mastodon-on-aws-Cluster-1NHBMI9NL62QP-Cluster-pkxgiUVXxLC7).
  4. Select the Tasks tab.
  5. Search for a task with status Running and a task definition containing *-WebService-* in its name.
  6. Note down the task ID (e.g., a752b99a4cf843ce8a957c374fc98abf).
  7. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants