Bastion server 생성

Untitled

Untitled

Untitled

Untitled

생성된 키페어는 자신이 알아볼 수 있는 위치에 둔다.

Untitled

Untitled

생성했던 vpc 지정 후 public subnet으로 지정

❗혹시라도 bastion 접속이 되지 않는다면, 보안그룹의 ssh 소스를 0.0.0.0/0 으로 열고 시도

(Wifi 환경에서 내IP가 안되는 경우 종종 있음)

Bastion Server 접속 - Windows

Untitled

Untitled

Untitled

sudo su -
pwd

Bastion Server 접속 - MAC

# mac OS - iterm2 / 기본 터미널 위에서 작업
cd <키페어가 있는 폴더 경로>
chmod 400 <키페어>
ssh -i <키페어> ec2-user@<bastion-ip>
sudo su -
pwd

Untitled

AWS CLI, EKSCTL, Kubectl 설치

# AMI가 Amazon Linux이기 때문에 설치가 되어 있음
aws --version

# IAM user의 Access Key, Secret Key 세팅
aws configure

# 세팅 확인 (에러 뜨면 aws configure 세팅 다시 시도)
aws s3 ls

Untitled

Untitled

curl --silent --location "<https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$>(uname -s)_amd64.tar.gz" | tar xz -C /tmp
mv /tmp/eksctl /usr/local/bin
eksctl version

Untitled