This is a BETA provider, managed by the Kong team. You're probably looking for terraform-provider-konnect
This provider is generated from openapi.yaml using Speakeasy. To test a new version, use the following steps:
- Run
make generate - Run
go mod tidyto download all dependencies - If you use the
KONNECT_TOKENenv var to authenticate, runexport KONNECT_TOKENbefore running the provider - Run
go run main.go -debug - Take the
TF_REATTACH_PROVIDERSvariable and runexport TF_REATTACH_PROVIDERS=...in your terminal - Run
terraform applyin the same directory as your manifests
Assuming that your changes are working, raise a PR to platform-api for review then see contributing features
- Create a new release branch (if needed) named
release/x.y.z, wherex.y.zis the new version - Update the
terraform.versionkey in thegen.yamlfile tox.y.zandgit add gen.yaml - Run
./tools/gen_beta_terraform.shon themainbranch ofplatform-apito update theopenapi.yamlfile in this repo - Run
make generateto generate the provider (see local generation) - Test your changes to ensure the provider still works
git add openapi.yamland commit the changes as a single commitgit addand commit the provider's.gofiles, plus the.speakeasyanddocsdirectory- Add examples for your new resources to
examples/resources,git addthem and make a third commit - Update
CHANGELOG.mdwith descriptions of fixes and changes andgit addfor a fourth commit - Raise a PR against
release/x.y.zfor review
Submitting your changes as four commits is not a hard requirement, but it makes it easier to review the PR as four distinct sets of work:
- OpenAPI changes
- Provider changes
- New examples
- Changelog
Once the release/x.y.z branch is merged to main, a new release will automatically be created and published to the Terraform registry.
This repository is automatically released when the .speakeasy/gen.lock file on main changes.
This usually happens when a release/x.y.z branch (see above) is merged in to main.
Before merging a release branch, update the release branch directly to set a release date in CHANGELOG.md. Once the release is complete, copy the changelog entry in to GitHub releases.
The openapi.yaml file in this repository is generated from Kong's platform-api repository (this repository is not OSS). Any changes made directly to openapi.yaml will be lost.
Please raise an issue if you have suggested changes to openapi.yaml.
The make test target runs some end to end tests against an org that @mheap owns. The tests need some refactoring (system account team IDs need to be dynamic) before anyone else can run them.