Hello Team,
I’ve created an EC2 instance using the following terraform directives:
provider “aws” {
- region = “us-east-1”*
- profile = “default”*
}
resource “aws_instance” “ec2” {
- ami = “ami-0b0dcb5067f052a63”*
- instance_type = “t2.micro”*
- key_name = “prd01”*
}
The keypair with name prd01 was created in the AWS management console before running the terraform configuration mentioned above.
After adding the .ppk file in the ssh->auth section of Putty and specifying the Public DNS name of the EC2 instance (also tried ec2-user@<public_ipv4_address>) I get a connection timeout error.
Any suggestions on how to resolve this and be able to connect ?