Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winebarrel/ecs-exec-pf
Port forwarding using the ECS task container. (aws-cli wrapper)
https://github.com/winebarrel/ecs-exec-pf
aws ecs fargate
Last synced: 27 days ago
JSON representation
Port forwarding using the ECS task container. (aws-cli wrapper)
- Host: GitHub
- URL: https://github.com/winebarrel/ecs-exec-pf
- Owner: winebarrel
- Created: 2021-10-29T17:42:04.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T02:00:01.000Z (over 2 years ago)
- Last Synced: 2024-10-08T10:18:45.503Z (about 1 month ago)
- Topics: aws, ecs, fargate
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 23
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ecs-exec-pf
Port forwarding using the ECS task container. (aws-cli wrapper)
## Usage
```
ecs-exec-pf - Port forwarding using the ECS task container. (aws-cli wrapper)Flags:
--version Displays the program version string.
-h --help Displays help with available flag, subcommand, and positional value parameters.
-c --cluster ECS cluster name.
-t --task ECS task ID.
-n --container Container name in ECS task.
-p --port Target remote port. (default: 0)
-l --local-port Client local port. (default: 0)
```## Installation
```sh
brew tap winebarrel/ecs-exec-pf
brew install ecs-exec-pf
```## Execution Example
```sh
$ ecs-exec-pf -c my-cluster -t 0113f61a4b1044d99c627daeee8c0d0c -p 80 -l 8080
Starting session with SessionId: root-03f56652a5f120d48
Port 8080 opened for sessionId root-03f56652a5f120d48.
Waiting for connections...
``````
$ curl -s localhost:8080 | grep title
Welcome to nginx!
```