Deploy Nginx in EC2 and expose it using load-balancer
First let's genrate an ssh key.
In your terminal write the following commandssh-keygen -t rsaThen it will ask about the folder where it should be install (./id_rsa).
Now let's create a key_pair in main.tf file.
resource "aws_key_pair" "key-tf" {
key_...
patelakshit.hashnode.dev2 min read