-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: move use cases to connections #36
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
sidebar_position: 11 | ||
slug: /usecases/aws-resources | ||
slug: /connections/aws-resources | ||
--- | ||
|
||
# AWS | resources | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
sidebar_position: 10 | ||
slug: /usecases/ecs-exec-oneoff | ||
sidebar_position: 11 | ||
slug: /connections/ecs-exec | ||
--- | ||
|
||
# AWS ECS | exec one-off | ||
# AWS ECS | ||
|
||
The Elastic Container Service allows executing one off tasks of any type directly into ECS tasks/containers. | ||
Interact with Elastic Container Service executing one off tasks or an interactive session into ECS tasks/containers. | ||
|
||
:::info note | ||
It's important to configure the ECS tasks before trying this feature, please refer to the [AWS documentation first](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html) | ||
|
@@ -21,13 +21,39 @@ It's important to configure the ECS tasks before trying this feature, please ref | |
| `AWS_SECRET_ACCESS_KEY` | env-var | The secret key credential | | ||
| `AWS_DEFAULT_REGION` | env-var | The AWS region | | ||
|
||
## AWS ECS - Interactive Sessions | ||
|
||
The AWS Elastic Container Service allows connecting to tasks and starting interactive sessions. It's possible to map these commands to Hoop to obtain interactive sessions allocating a pseudo TTY. | ||
|
||
:::info note | ||
It's important to configure the ECS tasks before trying this feature, please refer to the [AWS documentation first](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html) | ||
::: | ||
|
||
### Connection Command | ||
|
||
```shell | ||
ecs-exec.sh --interactive --cluster=$CLUSTER_NAME --service-name=$SERVICE_NAME | ||
``` | ||
|
||
### How to Use | ||
|
||
Start an interactive session | ||
|
||
```shell | ||
hoop connect my-ecs -- --pipe /bin/bash | ||
hoop connect my-ecs -- --pipe 'rails console' | ||
hoop connect my-ecs -- --pipe clojure | ||
``` | ||
|
||
## AWS ECS - Execute one task off | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's better to call "One Off Execution" @mtmr0x . The session is derived from an execution. |
||
|
||
### Connection Command | ||
|
||
```shell | ||
ecs-exec.sh --cluster=$CLUSTER_NAME --service-name=$SERVICE_NAME | ||
``` | ||
|
||
## How to Use | ||
### How to Use | ||
|
||
Now it's possible to execute ruby script straight from Hoop | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
sidebar_position: 7 | ||
slug: /usecases/heroku-oneoff | ||
sidebar_position: 20 | ||
slug: /connections/heroku-oneoff | ||
--- | ||
|
||
import ConnectOnHoopButton from './../../src/components/ConnectOnHoopButton'; | ||
|
||
# Heroku one-off | ||
# Heroku execute task one-off | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe I would change the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is related to heroku one off dynos: |
||
|
||
<ConnectOnHoopButton url='https://app.hoop.dev/connections/command-line/new?data=ewogICAgIm5hbWUiOiJteS1oZXJva3Utb25lLW9mZiIsCiAgICAidHlwZSI6ImNvbW1hbmQtbGluZSIsCiAgICAiaWNvbl9uYW1lIjogImhlcm9rdSIsCiAgICAic2VjcmV0IjogewogICAgICAgICJlbnZ2YXI6SEVST0tVX0FQSV9LRVkiOiIiCiAgICB9LAogICAgImNvbW1hbmQiOiBbIi9hcHAvYmluL2hlcm9rdSIsICJydW4iLCAiLS1leGl0LWNvZGUiXQp9' /> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
sidebar_position: 8 | ||
slug: /usecases/heroku-psexec | ||
sidebar_position: 20 | ||
slug: /connections/heroku-psexec | ||
--- | ||
|
||
import ConnectOnHoopButton from './../../src/components/ConnectOnHoopButton'; | ||
|
||
# Heroku | exec | ||
# Heroku | interactive | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe interactive is the command "connect" not the "exec". I always make misunderstand these kinds of commands, hahaha, but I believe that "exec" is not interactive. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The psexec allows connecting both interactive and non-interactive as do heroku one-off. The difference between then is that ps-exec executes stuff inside a running dyno and the other one executes in an one off dyno: |
||
|
||
<ConnectOnHoopButton url='https://app.hoop.dev/connections/command-line/new?data=ewogICAgIm5hbWUiOiJteS1oZXJva3UtZXhlYyIsCiAgICAidHlwZSI6ImNvbW1hbmQtbGluZSIsCiAgICAiaWNvbl9uYW1lIjogImhlcm9rdSIsCiAgICAic2VjcmV0IjogewogICAgICAgICJlbnZ2YXI6SEVST0tVX0FQSV9LRVkiOiIiCiAgICB9LAogICAgImNvbW1hbmQiOiBbIi9hcHAvYmluL3BzLWV4ZWMuc2giXQp9' /> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
sidebar_position: 16 | ||
slug: /usecases/mongodb | ||
slug: /connections/mongodb | ||
--- | ||
|
||
# MongoDB | mongosh cli | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"label": "Native Connections", | ||
"position": 1 | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 3 | ||
sidebar_position: 5 | ||
slug: /connections/postgres | ||
--- | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
sidebar_position: 17 | ||
slug: /usecases/bastion | ||
slug: /connections/bastion | ||
--- | ||
|
||
# Bastion Server | ssh cli | ||
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here