go install github.com/gravitational/protoc-gen-terraform@main
Install Terraform v1.1.0+. Alternatively, you can use tfenv. Please note that on Mac M1 you need to specify TFENV_ARCH (ex: TFENV_ARCH=arm64 tfenv install 1.1.6).
Note: Some tests won't pass without a valid teleport binary, enterprise license, etc.
See Testing to see how to provide these values to the tests locally.
Updating the provider
Run:
make gen-tfschema
This will generate types_tfschema.go from a current API .proto file, and regenerate the provider code.
Please note that target identity file was exported to /tmp/terraform-identity on previous step. If you used another location, please change in in main.tf.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.