▬▬▬▬▬▬ * Instruction's Guides * ▬▬▬▬▬▬

Terraform SSH into EC2 instance instruction guide? - https://jhooq.com/terraform-ssh-into-aws-ec2/
How to handle SSH keys in AWS? - https://youtu.be/S5B09dq-jGQ

While working with the AWS EC2 instance you do not get a Username and password to SSH into your EC2 instance. You have to either generate the SSH keys and associate the public key with the EC2 instance. After that, you need to use your private key to SSH into the virtual machine running in the AWS cloud.

On similar lines, if you are using Terraform to provision your AWS infrastructure you need to associate the public key with your terraform script and after starting the EC2 instance you need to use your private key to SSH into the EC2 instance.

In this lab session, we are going to perform the following steps -

1. Generate key-pair(public key, private key) using ssh-keygen
2. Use public key to start EC2 instance
3. Use the private key to SSH into EC2 instance


▬▬▬▬▬▬ ⭐️ Timestamps ⭐️ ▬▬▬▬▬▬
0:00 Intro
0:42 Terraform file walkthrough
5:30 Generate key-pair(public key, private key) using ssh-keygen?
7:32 Add public key to terraform script
9:28 Apply terraform cofiguration using public key
10:42 SSH into EC2 instance using the private key


For more details on Terraform here is the official guide on aws_key_pair -https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/key_pair

To learn more on DevOps visit - https://jhooq.com


Disclaimer/Policy: All the content/instructions are solely mine. The source is completely open-source.

Video is copyrighted and can not be re-distributed on any platform.



#devops #aws #cloud #ec2 #ssh #keys