Code Monkey home page Code Monkey logo

eks-utils's Introduction

EKS-Utils

A command-line script to login to an EKS cluster providing the basic information to connect and letting the script work for you. The actual configuration will be saved in a config.json file, to allow later connection to work without user input.

Requirements

  • Python 3.x installed

Installation

Install the dependencies with pip:

pip install requirements.txt

Run the script:

python init.py

Release notes

  • 2023-07-03: fix bug for missing check on config.json file #5
  • 2023-05-18: added support to kubectl proxy command
  • 2023-02-07: fix enhancement #1
  • 2023-02-09: fix bug for negative choice #2

eks-utils's People

Contributors

ssensini avatar serenasensini avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

twbrown42

eks-utils's Issues

Logic issue with final Confirmation

I made a mistake during the input of data, at the final Confirmation dialogue before processing I answered N (No). It still went ahead as if I had answered Y.

KeyError: 'service_account'

Error during the script execution:

::: Set Secret Access Key: aws configure set aws_session_token IQoJb3JpZ2luX2VjEH8aDGV1LWNlbnRyYWwtMSJHMEUCIQCmVJhdtprVYLxO5gZyTusc28wnCD/9SYn1INdwC5z6WQIgapCvVjUsIETqtje9oWD0TfG4cvuhNaxwQ2i6V4WtzLsqnAII6
P//////////ARACGgw1NTc4NDg4MzgyMTQiDM082NZyrp3eL19N+SrwASIfo9XrK5bcSr+O3C6VD6NQ2/shpkeK1NjeU70i0C29cS+zQsGgjUB6oqqeWwPDrThy96pI10BRkW8Ye189f6sMxJy08iXTUtqIKhqvRgo6ToqQJ0mWVCfn6tPa4Q1R/rkvvU/Uw7VHmblkelk/h
cl+4ep8kpPhfi2huLP9qrhHc/S+AiKEUUAyjJcBEgcE71MMvRWtBsRZmNZf7oEasHLOVuv2/H7w8D+rtLSdOk0o4p+cc4yL7I2pJLTgBGQOcTt6TZTBab3VUMra0CdVgwoRh7QxAhLkSk4+pqQMSdkSsp64Bs6VyTNxrb6oId8u5TC85ImlBjqdAbdx5Mz3lV7aO6JPVAbGZ
fSVGMWTq8fLV+AfXPOcYRV9BHx8+U8Jz8YPt49KK7MLpLq77kRR6QJkwi996ZZwSwUh1Pu3aqsLHmP5SOcEviPGCBk7ATqosgWvyop0ylEhpv93L1ovVjj+9iwsaXc1qmZjO1EbGrPCRyTnvLRU80hYijD6trDpwyUfSwaBHt3qHjSJdVUFPQKZLSvLxG8= --profile ek
s-assumed-profile :::

OK
Completed.

::: Assume role: aws eks update-kubeconfig --name EKS-Cluster01 --profile eks-assumed-profile --region eu-central-1 :::

Traceback (most recent call last):
  File "/opt/dedalus/projects/EKS-Utils/init.py", line 457, in <module>
    main()
  File "/opt/dedalus/projects/EKS-Utils/init.py", line 438, in main
if None != result["service_account"]:
KeyError: 'service_account'

requirements.txt encoding

Requirements file has dirt characters as shown in WSL, switching to UTF-8 encoding fixes it

cat requirements.txt

��inquirerpy===0.3.4
pfzy===0.3.4
pip===21.3.1
prompt-toolkit===3.0.36
setuptools===60.2.0
wcwidth===0.2.6
wheel===0.37.1

Return code 255

Run:
python init.py

Output:

::: Assume role: aws eks update-kubeconfig --name EKS-Cluster01 --profile eks-assumed-profile --region eu-west-1 ::: 255

Error during the execution. Abort

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.