Skip to content

Bash script for aws sso login, download eks kubeconfig, ecr login to docker/podman for selected aws profile

Notifications You must be signed in to change notification settings

ajaykumar4/aws-eks-ecr-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Repo will setup shortcut for authenicate aws sso, eks kubeconfig, ecr and container details for debugging

setup

prerequisite

installing packages using brew for macos and linux

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install awscli
brew install fzf
brew install kubectx
brew install kubectl

Install aws_eks_ecr shortcut script using below command:

BU values is required to get AWS account details:

  • devops: DevOps Account (office)
  • personal: Personal Account (personal)
  • all: Combines all accounts config from aws_config directory
# Replace <BU> with filename (i.e, devops/personal/all) from aws_config directory
curl -sSL https://raw.githubusercontent.com/ajaykumar4/aws-eks-ecr-script/main/install.sh | bash -s -- <BU>

Run this command to login to aws, download eks kubeconfig, authenicate ecr.

aws_sso_login

Run this command to set kube context of eks

kubectx

Run this command to display service container output

container_log <service_name> <env>-<domain>

Run this command to display service container and istio output

all_container_log <service_name> <env>-<domain>

Run this command to download service container output

download_container_log <service_name> <env>-<domain>

Run this command to download service container and istio output

download_all_container_log <service_name> <env>-<domain>

Run this command to display service container description

container_describe <service_name> <env>-<domain>

Run this command to download service container description

download_container_describe <service_name> <env>-<domain>

About

Bash script for aws sso login, download eks kubeconfig, ecr login to docker/podman for selected aws profile

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages