terraform {
required_providers {
aws = {
source = "hashicorp/aws"
}
}
}
provider "aws" {
region = "us-east-1"
access_key = "<my-key->"
secret_key = "<my-sec-key>"
}
resource "aws_instance" "terra-instance" {
ami = "ami-09e67e426f25ce0d7"
instance_type = "t2.micro"
}
I am new to terraform and have encountered this issue. I am trying to create an instance in AWS cloud using terraform and when I issue "terraform plan" it says "No changes. Infrastructure is up-to-date."
can some one help me on this?
adarshpatil@Adarshs-MacBook-Pro Project-1 % terraform apply Apply complete! Resources: 0 added, 0 changed, 0 destroyed.