ecsnv

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 1 Imported by: 0

README

ecsnv

GitHub go.mod Go version of a Go module

A lightweight utility to dump AWS Farget's ECS containers environment variables locally

Motivation

More often than not, during the development cycle. I keep looking at my AWS ECS cluster and services to check what all environment variables have been set. Some ENVs were not readily available in the project repository since they were configured as secrets in SSM's parameter store.

While setting up an application or debugging some issue, I kept looking for env values for a set in different environments by logging in to the AWS console, which is painstakingly slow and hampers productivity.

Hence the tool.

Installation

brew tap dineshgowda24/dineshgowda
brew install ecsnv

Usage

  1. Fetching ENVs for a specific cluster and service

    1. Prints locally in the shell
    ecsnv --cluster <cluster_name> --service <service_name>
    
    1. Writes to a file
    ecsnv --cluster <cluster_name> --service <service_name> --file <file_name>
    
  2. Fetching ENVs for a specific cluster and service from a particular profile

    If a profile is not passed, then the default profile is used.

    1. Prints locally in the shell
    ecsnv --cluster <cluster_name> --service <service_name> --profile <aws_profile_name>
    
    1. Writes to a file
    ecsnv --cluster <cluster_name> --service <service_name> --file <file_name> --profile <aws_profile_name>
    
  3. You can ignore the cluster or service name. The application will list all the clusters and services in the profile with an easy-to-use interactive shell.

    1. Prints locally in the shell
    ecsnv
    
    1. Writes to a file
    ecsnv  --file <file_name>
    

Demo

Printing ENVs in terminal

Writing ENVs to file

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL