Skip to content

Commit

Permalink
docs: include import capabilities (#101)
Browse files Browse the repository at this point in the history
* docs: include import capabilities

* Generate docs
  • Loading branch information
gastonfournier authored Dec 18, 2023
1 parent cad31c8 commit ed042a4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions docs/resources/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ Project schema
## Example Usage

```terraform
import {
id = "default"
to = unleash_project.default_project
}
resource "unleash_project" "default_project" {
id = "default"
name = "Default project"
description = "Default project now managed by Terraform"
}
resource "unleash_project" "test_project" {
id = "my_project"
name = "My Terraform project"
Expand Down
13 changes: 12 additions & 1 deletion examples/resources/unleash_project/resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import {
id = "default"
to = unleash_project.default_project
}

resource "unleash_project" "default_project" {
id = "default"
name = "Default project"
description = "Default project now managed by Terraform"
}

resource "unleash_project" "test_project" {
id = "my_project"
name = "My Terraform project"
description = "A project created through terraform"
}
}

0 comments on commit ed042a4

Please sign in to comment.