{
  "format_version": "1.2",
  "terraform_version": "1.9.8",
  "resource_changes": [
    {
      "address": "aws_vpc.demo", "mode": "managed", "type": "aws_vpc", "name": "demo",
      "provider_name": "registry.terraform.io/hashicorp/aws",
      "change": {
        "actions": ["no-op"],
        "before": {"id": "vpc-demo", "cidr_block": "10.0.0.0/16"},
        "after": {"id": "vpc-demo", "cidr_block": "10.0.0.0/16"}
      }
    },
    {
      "address": "aws_subnet.app", "mode": "managed", "type": "aws_subnet", "name": "app",
      "provider_name": "registry.terraform.io/hashicorp/aws",
      "change": {
        "actions": ["no-op"],
        "before": {"id": "subnet-app", "vpc_id": "vpc-demo", "cidr_block": "10.0.1.0/24"},
        "after": {"id": "subnet-app", "vpc_id": "vpc-demo", "cidr_block": "10.0.1.0/24"}
      }
    },
    {
      "address": "aws_instance.new", "mode": "managed", "type": "aws_instance", "name": "new",
      "provider_name": "registry.terraform.io/hashicorp/aws",
      "change": {
        "actions": ["create"], "before": null,
        "after": {"subnet_id": "subnet-app", "instance_type": "t3.micro"}
      }
    },
    {
      "address": "aws_instance.app", "mode": "managed", "type": "aws_instance", "name": "app",
      "provider_name": "registry.terraform.io/hashicorp/aws",
      "change": {
        "actions": ["update"],
        "before": {"id": "i-app", "subnet_id": "subnet-app", "instance_type": "t3.micro"},
        "after": {"id": "i-app", "subnet_id": "subnet-app", "instance_type": "t3.small"}
      }
    },
    {
      "address": "aws_instance.old", "mode": "managed", "type": "aws_instance", "name": "old",
      "provider_name": "registry.terraform.io/hashicorp/aws",
      "change": {
        "actions": ["delete"],
        "before": {"id": "i-old", "subnet_id": "subnet-app", "instance_type": "t3.micro"},
        "after": null
      }
    }
  ],
  "configuration": {
    "root_module": {
      "resources": [
        {"address": "aws_vpc.demo"},
        {"address": "aws_subnet.app", "expressions": {"vpc_id": {"references": ["aws_vpc.demo.id"]}}},
        {"address": "aws_instance.app", "expressions": {"subnet_id": {"references": ["aws_subnet.app.id"]}}},
        {"address": "aws_instance.new", "expressions": {
          "subnet_id": {"references": ["aws_subnet.app.id"]},
          "user_data": {"references": ["aws_instance.app.private_ip"]}
        }}
      ]
    }
  }
}
