Skip to content

Commit

Permalink
Merge pull request #197 from jedipunkz/feat/update-to-aws-sdk-go-v2
Browse files Browse the repository at this point in the history
Feat/update to aws sdk go v2
  • Loading branch information
jedipunkz authored Sep 29, 2024
2 parents e06f2a5 + 17dab82 commit 8fdc5ce
Show file tree
Hide file tree
Showing 11 changed files with 289 additions and 605 deletions.
37 changes: 8 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# miniecs

miniecs is a CLI tool that allows you to fuzzy finder incremental search your ecs envs and login to your container. And you can execute any commands on your container.
miniecs is a cli tool to login ecs container with fuzzy finder incremental search.

![Go-CI](https://github.com/jedipunkz/miniecs/workflows/Go-CI/badge.svg)
![CodeQL](https://github.com/jedipunkz/miniecs/workflows/CodeQL/badge.svg)

<img src="https://raw.githubusercontent.com/jedipunkz/miniecs/main/pix/miniecs.gif">

## Requirement
## Requirements

- install go 1.17.x or later
- install [session-manager-plugin](https://docs.aws.amazon.com/ja_jp/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html)
- Install Go 1.22.x or later
- Install [session-manager-plugin](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html)

## Installation

Expand All @@ -31,45 +31,24 @@ go install github.com/jedipunkz/miniecs@latest

### Login Sub-Command

A sub-command to login ecs container with incremental searching.
A sub-command to login to an ECS container with incremental searching.

Run 'login' sub-command to login to container. If you don't specify cluster, miniecs find all of your clusters in region. 'region' option is requred.
Run the 'login' sub-command to log in to a container. If you don't specify a cluster, miniecs will find all of your clusters in the region. The 'region' option is required.

```shell
$ miniecs login --region <REGION_NAME>
```

You can also specify a cluster and shell. These options are optional. Default shell is 'sh'.
You can also specify a cluster and shell. These options are optional. The default shell is 'sh'.

```shell
$ miniecs login --region <REGION_NAME> --cluster <CLUSTER_NAME> --shell <SHELL>
```

### Execute Sub-Command

A sub-command to execute command in container.

```shell
$ miniecs exec \
--region <REGION_NAME> \
--cluster <CLUSTER_NAME> \
--service <SERVICE_NAME> \
--container <CONTAINER_NAME> \
--command <SHELL_COMMAND>
```

### List Sub-Command

A sub-command to get table information of ecs cluster(s), service(s) and container(s).

```shell
$ miniecs list --region <REGION_NAME>
```

## License

[Apache License 2.0](https://github.com/jedipunkz/awscreds/blob/main/LICENSE)

## Author

[jedipunkz](https://twitter.com/jedipunkz)
[jedipunkz](https://twitter.com/jedipunkz)
15 changes: 0 additions & 15 deletions cmd/cmd_types.go

This file was deleted.

115 changes: 0 additions & 115 deletions cmd/exec.go

This file was deleted.

105 changes: 0 additions & 105 deletions cmd/list.go

This file was deleted.

Loading

0 comments on commit 8fdc5ce

Please sign in to comment.