I’m relatively new to Terraform so I suspect I’m missing something simple here.
I setup a number of TF resources in a project using an S3 backend with this config:
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.16"
}
}
backend "s3" {
bucket = "my-tf-state-bucket"
key = "terraform.tfstate"
dynamodb_table = "terraform-locks"
region = "us-east-1"
profile = "my-profile"
}
required_version = ">= 1.2.0"
}
provider "aws" {
region = var.region
profile = var.profile
}
Everything has been working fine until I pulled the Git repo on a second computer. I went to do some work on that machine after running terraform init
and selecting my workspace, I ran terraform plan
and it wants to make 20 additions, 4 changes, and 16 deletions.
Running terraform plan
on the first machine shows no changes.
What have I missed?