From the course: Essential Terraform in AWS

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Destroying the infrastructure and analysis

Destroying the infrastructure and analysis

From the course: Essential Terraform in AWS

Destroying the infrastructure and analysis

- [Instructor] Before we destroy the infrastructure that we created, I'd like to do a little bit more analysis and attempt to SSH into this instance. So, let's go over to our AWS Console. We'll go to the Instance ID and you can SSH in by public IP address or by public DNS name. We'll try it by public IP. So I'm going to copy this IP address and go over to our VS code here. Bring the terminal back up and we'll run an SSH. Now, when you SSH into a Debian system that's on AWS, the main administrative account that they create in their Debian image by default is called admin. So, we would connect as admin@ and then paste in that IP. Now, this isn't actually going to work, but let's show what happens if we try to connect. So, we'll press Enter and it says, hey, "The authenticity of this host can't be established. Are you sure you want to continue?" I'm going to say yes, but this means that it actually does see the host and sees that SSH is open. We'll say yes to this, but it's going to say,…

Contents