Brian Flad
be04f08750
resource/example: Add defaulted attribute ( #136 )
...
Reference: https://developer.hashicorp.com/terraform/plugin/framework/resources/default
New example attribute highlights terraform-plugin-framework v1.2.0+ `Default` functionality for resource attributes. While the scaffolding code is not meant to be exhaustive of all available framework functionality, this new built-in feature is important enough to highlight.
2023-03-22 08:27:52 -04:00
Brian Flad
6deb8ed836
Migrate to terraform-plugin-testing ( #132 )
...
Reference: https://discuss.hashicorp.com/t/announcing-the-terraform-plugin-testing-module/49914
This will ensure that developers cloning this template repository will get the most current Go module for provider testing.
2023-03-10 09:40:04 -05:00
Austin Valle
fa8056ce94
ci: add golangci-lint
+ fix lints ( #120 )
...
* ci: add `golangci-lint` + fix lints
* switched order
2023-01-26 14:24:42 -05:00
Benjamin Bennett
06010dcd78
Fixing commented code to refer to r.client rather than d.client in example_resource ( #106 ) ( #107 )
2022-12-15 14:53:01 +00:00
dependabot[bot]
5e83f9b668
Bump github.com/hashicorp/terraform-plugin-framework from 0.17.0 to 1.0.0 ( #104 )
...
* Bump github.com/hashicorp/terraform-plugin-framework
Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework ) from 0.17.0 to 1.0.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases )
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/terraform-plugin-framework/compare/v0.17.0...v1.0.0 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* internal/provider: Remove now extraneous provider.ProviderWithMetadata
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Flad <bflad417@gmail.com>
2022-12-13 14:33:38 -05:00
Brian Flad
aed8000e78
Migrate to new schema packages ( #103 )
2022-12-10 20:15:03 -05:00
Brian Flad
c05b586f5c
internal/provider: Updates for terraform-plugin-framework@v0.15.0 deprecations ( #97 )
2022-10-26 10:19:28 -04:00
Brian Flad
486074a22a
Updates for framework provider.DataSourceType
and provider.ResourceType
deprecations ( #86 )
2022-09-12 15:59:37 -04:00
dependabot[bot]
cdfbef8f1b
Bump github.com/hashicorp/terraform-plugin-framework from 0.10.0 to 0.11.0 ( #77 )
...
* Bump github.com/hashicorp/terraform-plugin-framework
Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework ) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases )
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/terraform-plugin-framework/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Code updates for terraform-plugin-framework v0.11.0
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Flad <bflad417@gmail.com>
2022-08-11 13:03:35 -04:00
dependabot[bot]
ce25f30f3f
Bump github.com/hashicorp/terraform-plugin-framework from 0.9.0 to 0.10.0 ( #70 )
...
* Bump github.com/hashicorp/terraform-plugin-framework
Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases )
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/terraform-plugin-framework/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* internal/provider: Switch from tftypes.NewAttributePath() to path.Root()
* deps: github.com/hashicorp/terraform-plugin-sdk/v2@v2.19.0
Updated via:
```shell
go get github.com/hashicorp/terraform-plugin-sdk/v2@v2.19.0
go mod tidy
```
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Flad <bflad417@gmail.com>
2022-07-19 11:46:41 -04:00
Brian Flad
16a0751849
Updates for terraform-plugin-framework v0.7.0 ( #40 )
...
Reference: https://github.com/hashicorp/terraform-plugin-framework/releases/tag/v0.7.0
2022-04-29 16:02:22 -04:00
Brian Flad
51deae2bc7
internal/provider: Add compilation based interface assertions ( #38 )
...
This is a quick method for compilation errors to be raised should the types not satisfy the expected framework interfaces.
2022-04-22 06:46:40 -04:00
Paddy
798e2e5525
Demonstrate logging in provider code. ( #7 )
...
Add an example of using the tflog package to write a provider log.
2021-12-23 10:48:23 -08:00
Brian Flad
d1b343faed
Add provider configuration fetching to Configure since it will be a very common use case
2021-12-01 06:39:46 -05:00
Brian Flad
a64a312802
Initial commit
...
Most of the content is inspired by existing content in https://github.com/hashicorp/terraform-provider-scaffolding .
2021-12-01 05:37:16 -05:00