Code Monkey home page Code Monkey logo

ecsexec's Introduction

ecsexec

ecsexec is a tool designed to access a shell session within a container running in an ECS task.

Prerequisites

Before using ecsexec, ensure that you have the following prerequisites installed on your local machine:

  1. AWS CLI: The AWS Command Line Interface (CLI) is required for managing AWS resources from the command line. Installation instructions for the AWS CLI can be found in the AWS documentation: Installing the AWS CLI.

  2. Session Manager Plugin (session-manager-plugin): Installation instructions for session-manager-plugin can be found in the AWS documentation: Session Manager Plugin Installation.

Installation

You can install this tool by running the following command:

Homebrew

brew install Taiki130/ecsexec/ecsexec

go

go install -a github.com/Taiki130/ecsexec/cmd/ecsexec@latest

Usage

The ecsexec command can be used with the following syntax:

ecsexec [global options]

Interactive Prompt

If any of the required information is not provided through environment variables or command-line options, ecsexec will prompt you interactively to select the necessary details.

Global Options

  • --region value: Specifies the AWS region name. Default is $AWS_REGION.
  • --profile value: Specifies the AWS profile name. Default is $AWS_PROFILE.
  • --cluster value: Specifies the ECS cluster name. Default is $ECSEXEC_CLUSTER.
  • --service value: Specifies the ECS service name. Default is $ECSEXEC_SERVICE.
  • --container value: Specifies the container name. Default is $ECSEXEC_CONTAINER.
  • --command value: Specifies the login shell. Default is /bin/sh, and it can be overridden by $ECSEXEC_COMMAND.
  • --help, -h: Displays the help message.

Examples

Simple Usage Example

ecsexec

Specifying flags Example

ecsexec --region us-east-1 --cluster my-cluster --service my-service --container my-container

Specifying a Login Shell Example

ecsexec --command /bin/bash

Configuration

You can customize the behavior of the ecsexec command using environment variables. Here are the available environment variables:

  • AWS_REGION: AWS region name
  • AWS_PROFILE: AWS profile name
  • ECSEXEC_CLUSTER: ECS cluster name
  • ECSEXEC_SERVICE: ECS service name
  • ECSEXEC_CONTAINER: Container name
  • ECSEXEC_COMMAND: Login shell

License

This project is licensed under the MIT License. See the LICENSE file for details.

ecsexec's People

Contributors

renovate[bot] avatar taiki130 avatar ecsexec-tfaction[bot] avatar nysdin avatar

Stargazers

 avatar Taiki Noda avatar  avatar

Watchers

 avatar  avatar

ecsexec's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

  • chore(deps): update dependency aquaproj/aqua to v2.32.0
  • chore(deps): update terraform aws to v5.68.0

Detected dependencies

github-actions
.github/workflows/apply.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
.github/workflows/pr-agent.yaml
  • Codium-ai/pr-agent v0.24@d4d9a7f8b456f57422fae1e819c98f6f40966402
.github/workflows/release.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • actions/setup-go v5.0.2@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
  • actions/create-github-app-token v1.11.0@5d869da34e18e7287c1daad50e0b8ea0f506ce69
  • goreleaser/goreleaser-action v6.0.0@286f3b13b1b49da4ac219696163fb8c1c93e1200
.github/workflows/schedule-create-drift-issues.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
.github/workflows/schedule-detect-drifts.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
.github/workflows/sync-drift-issue-description.yaml
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
.github/workflows/test.yaml
.github/workflows/wc-conftest-verify.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
.github/workflows/wc-enable-auto-merge.yaml
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
.github/workflows/wc-ghalint.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
.github/workflows/wc-hide-comment.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
.github/workflows/wc-opa-fmt.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
  • suzuki-shunsuke/github-action-opa-fmt v0.1.0@59d2b3726741e2aeb3fc96ba2cbdfd05ae879f28
.github/workflows/wc-path-filter.yaml
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • suzuki-shunsuke/get-pr-action v0.1.0@b002e41164d7a39586b41f17f9caca4e98a1efe4
  • dorny/paths-filter v3.0.2@de90cc6fb38fc0963ad72b210f1f284cd68cea36
.github/workflows/wc-plan.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
.github/workflows/wc-renovate-config-validator.yaml
  • suzuki-shunsuke/renovate-config-validator-workflow v0.2.3@4a378742d05b4e67aae34039d7c779ac913cd79d
.github/workflows/wc-setup.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
.github/workflows/wc-test-module.yaml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • aquaproj/aqua-installer v3.0.1@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c
  • suzuki-shunsuke/tfaction v1.5.2@01829b75913b9424932c982b2d9e05ee908b647f
.github/workflows/wc-update-aqua-checksums.yaml
  • aquaproj/update-checksum-workflow v1.0.2@437067ad2fba9ba8ed8454cf207f2532432d4e28
gomod
go.mod
  • go 1.22.2
  • github.com/aws/aws-sdk-go-v2 v1.30.5
  • github.com/aws/aws-sdk-go-v2/config v1.27.35
  • github.com/aws/aws-sdk-go-v2/service/ecs v1.45.5
  • github.com/aws/aws-sdk-go-v2/service/ssm v1.53.0
  • github.com/manifoldco/promptui v0.9.0
  • github.com/sirupsen/logrus v1.9.3
  • github.com/urfave/cli/v2 v2.27.4
  • gopkg.in/ini.v1 v1.67.0
regex
.github/workflows/apply.yaml
  • aquaproj/aqua v2.29.0
  • aquaproj/aqua v2.29.0
.github/workflows/schedule-create-drift-issues.yaml
  • aquaproj/aqua v2.29.0
.github/workflows/schedule-detect-drifts.yaml
  • aquaproj/aqua v2.29.0
  • aquaproj/aqua v2.29.0
.github/workflows/wc-conftest-verify.yaml
  • aquaproj/aqua v2.29.0
.github/workflows/wc-ghalint.yaml
  • aquaproj/aqua v2.29.0
.github/workflows/wc-hide-comment.yaml
  • aquaproj/aqua v2.29.0
.github/workflows/wc-opa-fmt.yaml
  • aquaproj/aqua v2.29.0
.github/workflows/wc-plan.yaml
  • aquaproj/aqua v2.29.0
.github/workflows/wc-setup.yaml
  • aquaproj/aqua v2.29.0
.github/workflows/wc-test-module.yaml
  • aquaproj/aqua v2.29.0
.github/workflows/wc-update-aqua-checksums.yaml
  • aquaproj/aqua v2.29.0
renovate.json5
  • aquaproj/aqua-renovate-config 2.3.1
aqua.yaml
  • golang/go go1.23.1
aqua.yaml
  • suzuki-shunsuke/ghalint v0.2.12
  • rhysd/actionlint v1.7.1
  • aquasecurity/trivy v0.55.2
  • goreleaser/goreleaser v2.3.2
  • hashicorp/terraform v1.9.6
  • suzuki-shunsuke/github-comment v6.2.0
  • suzuki-shunsuke/tfprovidercheck v1.0.0
  • suzuki-shunsuke/ci-info v2.3.0
  • open-policy-agent/conftest v0.55.0
  • cli/cli v2.57.0
  • suzuki-shunsuke/ghcp v1.15.0
  • open-policy-agent/opa v0.68.0
  • reviewdog/reviewdog v0.20.2
  • koalaman/shellcheck v0.10.0
  • terraform-docs/terraform-docs v0.19.0
  • suzuki-shunsuke/tfaction-go v0.2.3
  • suzuki-shunsuke/tfcmt v4.13.0
  • minamijoyo/tfmigrate v0.3.24
  • terraform-linters/tflint v0.53.0
  • FiloSottile/age v1.2.0
aqua.yaml
  • aquaproj/aqua-registry v4.222.0
aqua.yaml
  • golang/go 1.23.1
terraform
terraform/iam.tf
  • github.com/suzuki-shunsuke/terraform-aws-tfaction v0.2.2
terraform/main.tf
  • aws 5.64.0
  • github 6.3.0
  • sops 1.1.1
  • tls 4.0.6
  • hashicorp/terraform 1.9.6

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json5
Error type: The renovate configuration file contains some invalid settings
Message: Custom Manager contains disallowed fields: extraVersionTemplate, Invalid configuration option: customManagers[0].extraVersionTemplate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.