- vừa được xem lúc

Install AWS, kubectl & eksctl CLI's

0 0 3

Người đăng: AWS Community Builder

Theo Viblo Asia

Step-00: Introduction

  • Install AWS CLI
  • Install kubectl CLI
  • Install eksctl CLI

Step-01: Install AWS CLI

Step-01-01: MAC - Install and configure AWS CLI

  • Download the binary and install via command line using below two commands.
# Download Binary
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" # Install the binary
sudo installer -pkg ./AWSCLIV2.pkg -target /
  • Verify the installation
aws --version
aws-cli/2.0.7 Python/3.7.4 Darwin/19.4.0 botocore/2.0.0dev11 which aws

Step-01-02: Windows 10 - Install and configure AWS CLI

  • The AWS CLI version 2 is supported on Windows XP or later.
  • The AWS CLI version 2 supports only 64-bit versions of Windows.
  • Download Binary: https://awscli.amazonaws.com/AWSCLIV2.msi
  • Install the downloaded binary (standard windows install)
aws --version
aws-cli/2.0.8 Python/3.7.5 Windows/10 botocore/2.0.0dev12

Step-01-03: Configure AWS Command Line using Security Credentials

  • Go to AWS Management Console --> Services --> IAM
  • Select the IAM User: kalyan
  • Important Note: Use only IAM user to generate Security Credentials. Never ever use Root User. (Highly not recommended)
  • Click on Security credentials tab
  • Click on Create access key
  • Copy Access ID and Secret access key
  • Go to command line and provide the required details
aws configure
AWS Access Key ID [None]: ABCDEFGHIAZBERTUCNGG (Replace your creds when prompted)
AWS Secret Access Key [None]: uMe7fumK1IdDB094q2sGFhM5Bqt3HQRw3IHZzBDTm (Replace your creds when prompted)
Default region name [None]: us-east-1
Default output format [None]: json
  • Test if AWS CLI is working after configuring the above
aws ec2 describe-vpcs

Step-02: Install kubectl CLI

  • IMPORTANT NOTE: Kubectl binaries for EKS please prefer to use from Amazon (Amazon EKS-vended kubectl binary)
  • This will help us to get the exact Kubectl client version based on our EKS Cluster version. You can use the below documentation link to download the binary.
  • Reference: https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html

Step-02-01: MAC - Install and configure kubectl

  • Kubectl version we are using here is 1.16.8 (It may vary based on Cluster version you are planning use in AWS EKS)
# Download the Package
mkdir kubectlbinary
cd kubectlbinary
curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.16.8/2020-04-16/bin/darwin/amd64/kubectl # Provide execute permissions
chmod +x ./kubectl # Set the Path by copying to user Home Directory
mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bash_profile # Verify the kubectl version
kubectl version --short --client
Output: Client Version: v1.16.8-eks-e16311

Step-02-02: Windows 10 - Install and configure kubectl

  • Install kubectl on Windows 10
mkdir kubectlbinary
cd kubectlbinary
curl -o kubectl.exe https://amazon-eks.s3.us-west-2.amazonaws.com/1.16.8/2020-04-16/bin/windows/amd64/kubectl.exe
  • Update the system Path environment variable
C:\Users\KALYAN\Documents\kubectlbinary
  • Verify the kubectl client version
kubectl version --short --client
kubectl version --client

Step-03: Install eksctl CLI

Step-03-01: eksctl on Mac

# Install Homebrew on MacOs
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" # Install the Weaveworks Homebrew tap.
brew tap weaveworks/tap # Install the Weaveworks Homebrew tap.
brew install weaveworks/tap/eksctl # Verify eksctl version
eksctl version

Step-03-02: eksctl on windows or linux

References:

Bình luận

Bài viết tương tự

- vừa được xem lúc

PDF Export, cẩn thận với những input có thể truyền vào

Giới thiệu. Dạo gần đây mình tình cờ gặp rất nhiều lỗi XSS, tuy nhiên trang đó lại có sử dụng dữ liệu người dùng input vào để export ra PDF.

0 0 49

- vừa được xem lúc

Giới thiệu về AWS Batch

Khi sử dụng hệ thống cloud service, điều chúng ta thường phải quan tâm đến không chỉ là hiệu suất hoạt động (performance) mà còn phải chú ý đến cả chi phí bỏ ra để duy trì hoạt động của hệ thống. Chắn hẳn là hệ thống lớn hay nhỏ nào cũng đã từng phải dùng đến những instance chuyên để chạy batch thực

0 0 128

- vừa được xem lúc

Tìm hiểu về AWS KMS

1. AWS KMS là gì. Ở KMS bạn có thể lựa chọn tạo symetric key (khóa đối xứng) hoặc asymetric key (khóa bất đối xứng) để làm CMK (Customer Master Key). Sau khi tạo key thì có thể thiết đặt key policy để control quyền access và sử dụng key.

0 0 53

- vừa được xem lúc

AWS VPC cho người mới bắt đầu

Tuần này, tôi trình bày lại những gì tôi đã học được về Virtual Private Cloud (VPC) của Amazon. Nếu bạn muốn xem những gì tôi đã học được về AWS, hãy xem Tổng quan về DynamoDB và Tổng quan về S3. VPC là gì. Những điều cần lưu ý:.

0 0 69

- vừa được xem lúc

AWS Essentials (Phần 6): Guildline SNS Basic trên AWS

Tiếp tục với chuỗi bài viết về Basic AWS Setting, chúng ta tiếp tục tìm hiểu tiếp tới SNS (Simple Notification Service). Đây là một service của AWS cho phép người dùng setting thực hiện gửi email, text message hay push notification tự động tới mobile device dựa trên event người dùng setting phía AWS

0 0 125

- vừa được xem lúc

Sử dụng Amazon CloudFront Content Delivery Network với Private S3 Bucket — Signing URLs

Trong nhiều trường hợp, thì việc sử dụng CDN là bắt buộc. Mình đã trải nghiệm với một số CDN nhưng cuối cùng mình lựa chọn sử dụng AWS CloudFront.

0 0 105