Step to setup Kubernetes Cluster on EC2 machines
Install and configure the prerequisites tools
Create and upload aws keypair
ssh-keygen -t rsa -f ~/.ssh/<Your_name>
aws ec2 describe-key-pairs
aws ec2 import-key-pair --region ap-south-1 --key-name "<Your_name>" --public-key-material file://~/.ssh/<Your_name>.pub
aws ec2 describe-key-pairs
git clone https://github.com/manukoli1986/aws-ec2-k8.git
Go to directory "aws-ec2-k8"
terraform init
terraform approve ## Type Yes
ssh ec2-user@ec2-ip-address-dns-name-here