Skip to content

Commit

Permalink
go generate
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwood committed Jun 20, 2022
1 parent cb43c71 commit 52e1b7c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/resources/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,25 @@ Creates static data assignments.
The **data** map will be copied to the **output** attribute during resource creation.
**output** values won't change during resource updates, only on re-creation.


## Example Usage

```terraform
resource "static_data" "creation_metadata" {
data = {
creation_date = timestamp()
}
// optionally you can set the lifecycle.ignore_changes attribute to
// prevent unnecessary resource changes
lifecycle {
ignore_changes = [data]
}
}
output "creation_date" {
value = static_data.creation_metadata.output.creation_date
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down

0 comments on commit 52e1b7c

Please sign in to comment.