An open API service indexing awesome lists of open source software.

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

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 -
```