github.com/opentofu/opentofu@v1.7.1/internal/tofu/testdata/import-id-variable/main.tf (about)

     1  variable "the_id" {
     2    default = "123"
     3  }
     4  
     5  import {
     6    to = aws_instance.foo
     7    id = var.the_id
     8  }
     9  
    10  resource "aws_instance" "foo" {
    11  }