Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No changes. Infrastructure is up-to-date. terraform plan

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.

like image 466
user380696 Avatar asked Oct 17 '25 03:10

user380696


1 Answers

I had the same problem. The solution is pretty easy: save all before you run any terraform command.

like image 108
Tamar Avatar answered Oct 19 '25 00:10

Tamar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!