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.
I had the same problem. The solution is pretty easy: save all before you run any terraform command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With