This tool is for EKS cluster.
If you're interested in infrastructure as Code(IaC), I would recommend using Terraform.
This tool is specifically designed for learning about EKS.
brew tap masa0221/tap && brew install eks-admin
sudo curl -s https://raw.githubusercontent.com/masa0221/eks-operations/HEAD/eks-admin -o /usr/local/bin/eks-admin && chmod +x /usr/local/bin/eks-admin
Enable the AWS Identity Center and create permission sets for both AWS administrator and EKS administrator.
You can modify parameters for EKS operation in the ./eks-admin file.
eks-admin login eksadmin
NOTE: This step is necessary to obtain the eksadmin identity.
eks-admin policy generate
eks-admin login admin
NOTE: This step is necessary to operate IAM resourece
eks-admin role create
NOTE: This command involves three steps. First, we're create the role, then we creating the policy to attach to the role. Finally, we attach the policy to the role. The role created in this step is configured to only allow the eksadmin to assume it.
eks-admin login eksadmin
NOTE: The eksadmin is the only role that can assume the intented role.
eks-admin cluster up
NOTE: It takes approximately 15 minutes.
eks-admin cluster down
- A quick path to Amazon EKS single sign-on using AWS SSO | Containers
- AWS SSO を用いた Amazon EKS への迅速なシングルサインオン | Amazon Web Services ブログ
I TAKE NO RESPOSIBILITY FOR ANY CONSEQUENCES OR ACTIONS THAT MAY OCCUR FROM USING THIS TOOL. IF YOU WISH TO USE IT, PLEASE MAKE SURE YOU UNDERSTAND WHAT IT DOES BEFORE PROCEEDING.