github.com/opentofu/opentofu@v1.7.1/internal/tofu/testdata/import-id-data-source/main.tf (about) 1 data "aws_subnet" "bar" { 2 vpc_id = "abc" 3 cidr_block = "10.0.1.0/24" 4 } 5 6 import { 7 to = aws_subnet.bar 8 id = data.aws_subnet.bar.id 9 } 10 11 resource "aws_subnet" "bar" {}