
Description
Use this when scaffolding a new Terraform provider.
SKILL.md
To scaffold a new Terraform provider with Plugin Framework:
- If I am already in a Terraform provider workspace, then confirm that I want to create a new workspace. If I do not want to create a new workspace, then skip all remaining steps.
- Create a new workspace root directory. The root directory name should be prefixed with "terraform-provider-". Perform all subsequent steps in this new workspace.
- Initialize a new Go module..
- Run
go get -u github.com/hashicorp/terraform-plugin-framework@latest. - Write a main.go file that follows the example.
- Remove TODO comments from
main.go - Run
go mod tidy - Run
go build -o /dev/null - Run
go test ./...
More skills from the agent-skills repository
View all 17 skillsaws-ami-builder
build Amazon Machine Images with Packer
Apr 6AWSDeploymentInfrastructure as CodePackerazure-image-builder
build Azure managed images with Packer
Apr 6AzureDeploymentPackerazure-verified-modules
develop certified Azure Verified Modules
Apr 6AzureComplianceInfrastructure as CodeTerraformprovider-actions
implement Terraform Provider lifecycle actions
Apr 6API DevelopmentPlugin DevelopmentTerraformprovider-docs
generate and review Terraform provider documentation
Apr 6DocumentationTechnical WritingTerraformprovider-resources
implement Terraform Provider resources and data sources
Apr 6API DevelopmentPlugin DevelopmentTerraform
More from HashiCorp
View publisherprovider-test-patterns
implement Terraform provider acceptance test patterns
agent-skills
Apr 6Plugin DevelopmentQATerraformTestingpush-to-registry
push Packer build metadata to HCP registry
agent-skills
Apr 6DeploymentGovernanceHCPPackerrefactor-module
refactor Terraform configurations into reusable modules
agent-skills
Apr 6ArchitectureInfrastructure as CodeTerraformrun-acceptance-tests
run acceptance tests for Terraform providers
agent-skills
Apr 6Plugin DevelopmentQATerraformTestingterraform-policy
write and test Terraform policy files
agent-skills
Jul 18ComplianceInfrastructure as CodeSecurityTerraform