Initial commit

This commit is contained in:
Mathias Fredriksson 2024-07-18 14:43:45 +03:00 committed by GitHub
commit 76d8aa974e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 1975 additions and 0 deletions
examples
README.md
data-sources/scaffolding_example
provider
resources/scaffolding_example

9
examples/README.md Normal file
View file

@ -0,0 +1,9 @@
# Examples
This directory contains examples that are mostly used for documentation, but can also be run/tested manually via the Terraform CLI.
The document generation tool looks for files in the following locations by default. All other *.tf files besides the ones mentioned below are ignored by the documentation tool. This is useful for creating examples that can run and/or ar testable even if some parts are not relevant for the documentation.
* **provider/provider.tf** example file for the provider index page
* **data-sources/`full data source name`/data-source.tf** example file for the named data source page
* **resources/`full resource name`/resource.tf** example file for the named data source page

View file

@ -0,0 +1,3 @@
data "scaffolding_example" "example" {
configurable_attribute = "some-value"
}

View file

@ -0,0 +1,3 @@
provider "scaffolding" {
# example configuration here
}

View file

@ -0,0 +1,3 @@
resource "scaffolding_example" "example" {
configurable_attribute = "some-value"
}