https://github.com/ajaykumar4/aws-eks-ecr-script
Bash script for aws sso login, download eks kubeconfig, ecr login to docker/podman for selected aws profile
https://github.com/ajaykumar4/aws-eks-ecr-script
aws awscli-login awscliv2 bash bash-script docker ecr eks kubectl podman zshrc
Last synced: 4 months ago
JSON representation
Bash script for aws sso login, download eks kubeconfig, ecr login to docker/podman for selected aws profile
- Host: GitHub
- URL: https://github.com/ajaykumar4/aws-eks-ecr-script
- Owner: ajaykumar4
- Created: 2024-08-07T15:58:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-07T16:07:43.000Z (almost 2 years ago)
- Last Synced: 2025-08-10T13:56:18.218Z (10 months ago)
- Topics: aws, awscli-login, awscliv2, bash, bash-script, docker, ecr, eks, kubectl, podman, zshrc
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 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 --
```
## 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 -
```
## Run this command to display service container and istio output
```
all_container_log -
```
## Run this command to download service container output
```
download_container_log -
```
## Run this command to download service container and istio output
```
download_all_container_log -
```
## Run this command to display service container description
```
container_describe -
```
## Run this command to download service container description
```
download_container_describe -
```