Terraform – EC2 t2 micro in easy steps

1. Create the following file with name something like aws.tr

provider “aws” {
access_key = “Your Access Key here”
secret_key = “Your Secret key here”
region     = “your region preferred”
resource “aws_instance” “terraform” {
ami           = “your ami id here”
instance_type = “t2.micro”
run a ‘terraform apply’
Done !

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Leave a Reply

Your email address will not be published. Required fields are marked *