Skip to content

Commit

Permalink
add import resource config example
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Jun 5, 2023
1 parent e49ab24 commit 97c6007
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/docs/language/import/index.mdx
Expand Up @@ -22,6 +22,11 @@ import {
to = aws_instance.example
id = "i-abcd1234"
}
resource "aws_instance" "example" {
name = "hashi"
# (other resource arguments...)
}
```

The above `import` block defines an import of the AWS instance with ID "i-abcd1234" into the resource address `aws_instance.example` in the root module.
Expand Down

0 comments on commit 97c6007

Please sign in to comment.