Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
teaguru committed May 10, 2024
1 parent 35b8d6f commit f661b9d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,27 @@ So that `--cluster` can be set by `ECS_CLUSTER` environmental variable, or `--ta

Also, `ecs-tool` exit code is the same as the container exit code.

### runFargate

The runFargate function is a command that is integrated into the ecs-tool utility. This tool simplifies running commands on an AWS ECS (Elastic Container Service) cluster with Fargate.

That normany use subnet with 'private' 'Tier' tag but if there is zero proivate subnets that will use 'public'

```
ecs-tool runFargate -e "preview" -- env
```

### EXEC

ecs-tool exec Executes a specified command in a running container on an ECS Fargate cluster and get the output.
That function use existing container, so it's faster than runFargate
This command also could connect to fargate existing task:

```
ecs-tool exec -e "preview" /bin/sh
```


### SSH

'SSH' access availabe to developers using `ecs-tool ssh`
Expand Down
2 changes: 1 addition & 1 deletion cmd/runFargate.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var runFargateCmd = &cobra.Command{
Short: "Runs a command in Fargate mode",
Long: `Runs the specified command on an ECS cluster, optionally catching its output.
This command is specifically tailored for future Fargate-specific functionality but currently duplicates the 'run' command.`,
This command is specifically tailored for future Fargate-specific functionality.`,
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
viper.SetDefault("run.launch_type", "FARGATE")
Expand Down

0 comments on commit f661b9d

Please sign in to comment.