New Terraform Provider

Use this when scaffolding a new Terraform provider.

lidge-jun 7bf5a52 2 files · 1.7 KB Updated

File contents

To scaffold a new Terraform provider with Plugin Framework:

  1. If already in a Terraform provider workspace, confirm before creating a new one. Skip remaining steps if declined.
  2. Create a workspace root directory prefixed with terraform-provider-. Run all subsequent steps inside it.
  3. Initialize a new Go module.
  4. Run go get -u github.com/hashicorp/terraform-plugin-framework@latest.
  5. Write a main.go following the example.
  6. Remove TODO comments from main.go.
  7. Run go mod tidy.
  8. Run go build -o /dev/null.
  9. Run go test ./....

lidge-jun/cli-jaw-skills/tree/main/terraform/provider-development/skills/new-terraform-provider commit 7bf5a523a6

Frequently asked questions

npx skillmds@latest add lidge-jun/new-terraform-provider