As technology continues to advance, our homes are becoming smarter and more connected than ever before. This includes the integration of smart devices that offer convenience, efficiency, and improved…
If you are using Terraform, you will realize that most provisioners require access to the remote resource, for example, let’s say you want to connect to an EC2 in order to run a few commands on it, and use it the way that you’d use a computer setting in front of you.
What you’d need is a key pair to be associated with the EC2 instance, let’s see how to create it and how to get it set up in your local machine.
In this post we will create a Terraform file in order to:
That’s going to generate a key for us.
And just for the good practice, try to work with variables.
Wait, we didn’t specify yet the security group, you can open access to ssh to this instance using security groupe.
So a security group is like a firewall what I need to do is allow access from my IP address to this instance.
Let’s launch the instance now.
$ terraform apply
And congratulations !
Finally, don’t forget to destroy the instance.
$ terraform destroy
I hope that you have enjoyed reading this article and that you find it useful.
We often come quick to judgement when seeing someone helplessly stuck in a seemingly toxic or unhealthy relationship. It’s always easier to be the observer and the person to judge others from a high…
Cada primavera algunas tribus nativas ofrecen sus cicatrices y heridas, físicas o del alma, a algún árbol para que las sane. Y hacen la promesa de no volver a hablar de ellas. Quizás tengan razón…
welcome to my page. this is just a proper ‘indtroduction post’ lol. let’s say i’m a huge movie-lovers so i’m going to post my review(s) about my favorite or not-so-favorite movies that i watched. i’m…