You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! :) Recently my team was working on a project to build out a custom TF provider. We used a setup which included a dev container, Taskfile, and other toolings to help streamline the development experience and keep things consistent between contributors.
We would love to contribute the (generalized) template Taskfile.yml and/or devcontainer.json configuration, etc. to help others get started quickly on developing their own TF provider. For example, a typical workflow with this setup would look like this:
Open the repo in VS Code inside the dev container, which will automatically install all the necessary tools and dependencies.
Make changes to provider code.
Run task build to build the provider binary using GoReleaser.
Run task test to run unit/acceptance tests.
When testing an example Terraform configuration, run task tfp to run terraform plan, and task tfa to run terraform apply with auto-approval.
If all of the testing results look good, run task lint to check for linting errors or security concerns using the variety of linters set up through the dev container.
Run task docs to automatically generate documentation for the provider using tfplugindocs.
Commit to feature branch, and open PR.
I wanted to submit an issue here first to see if it was of interest before opening a PR or anything. Thanks!
The text was updated successfully, but these errors were encountered:
Hi there @abigailpham 👋🏻, thanks for submitting an issue first!
Currently, this scaffolding provider is meant to be a baseline for Terraform provider development across the entire ecosystem. There are already a couple pieces of this repo that lean into specific workflows, such as our GitHub actions based release process, which was deemed a reasonable addition since the repo itself is housed in GitHub and the most likely use-case would be cloning it as a template repository.
That being said, I think we'd prefer to hold off on introducing more specific developer workflows to this scaffolding repo.
There has been some internal chatter about having more prescriptive provider development content for use-cases such as private provider development, so perhaps in the future we might maintain a more "curated" provider scaffold template and we can revisit this issue.
I'm going to leave this issue open to collect any other ideas the community has for this.
Hi there! :) Recently my team was working on a project to build out a custom TF provider. We used a setup which included a dev container, Taskfile, and other toolings to help streamline the development experience and keep things consistent between contributors.
We would love to contribute the (generalized) template
Taskfile.yml
and/ordevcontainer.json
configuration, etc. to help others get started quickly on developing their own TF provider. For example, a typical workflow with this setup would look like this:task build
to build the provider binary using GoReleaser.task test
to run unit/acceptance tests.task tfp
to runterraform plan
, andtask tfa
to runterraform apply
with auto-approval.task lint
to check for linting errors or security concerns using the variety of linters set up through the dev container.task docs
to automatically generate documentation for the provider usingtfplugindocs
.I wanted to submit an issue here first to see if it was of interest before opening a PR or anything. Thanks!
The text was updated successfully, but these errors were encountered: