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:
- provider/provider.tf - Example file for the provider index page
- resources/
full resource name/resource.tf - Example file for the named resource page - data-sources/
full data source name/data-source.tf - Example file for the named data source page
To run any example:
-
Set your Flashduty APP key:
export FLASHDUTY_APP_KEY="your-app-key"
-
Navigate to the example directory:
cd examples/resources/flashduty_team -
Initialize and apply:
terraform init terraform plan terraform apply