Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischer-ch committed Jan 31, 2025
1 parent 504a690 commit 7d2c8a6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
25 changes: 24 additions & 1 deletion docs/resources/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,21 @@ description: |-

Tag resource


## Example Usage

```terraform
resource "aria_tag" "basic_example" {
key = "MyTag"
value = "My Value"
force_delete = true # Force deletion even if in use (use with caution)
keep_on_destroy = false # Let Terraform delete icon for real on destroy (the default)
}
resource "aria_tag" "shared_example" {
key = "AnotherTag"
keep_on_destroy = true # Do not delete, preventing issues if same tag is declared multiple time
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand All @@ -30,3 +44,12 @@ Default value is false.
### Read-Only

- `id` (String) Identifier

## Import

Import is supported using the following syntax:

```shell
# Tag can be imported by specifying the instance's unique identifier.
terraform import aria_tag.example 9ea6205b-e0e1-4188-b275-b17299efe49a
```
2 changes: 2 additions & 0 deletions examples/resources/aria_tag/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Tag can be imported by specifying the instance's unique identifier.
terraform import aria_tag.example 9ea6205b-e0e1-4188-b275-b17299efe49a
11 changes: 11 additions & 0 deletions examples/resources/aria_tag/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
resource "aria_tag" "basic_example" {
key = "MyTag"
value = "My Value"
force_delete = true # Force deletion even if in use (use with caution)
keep_on_destroy = false # Let Terraform delete icon for real on destroy (the default)
}

resource "aria_tag" "shared_example" {
key = "AnotherTag"
keep_on_destroy = true # Do not delete, preventing issues if same tag is declared multiple time
}

0 comments on commit 7d2c8a6

Please sign in to comment.