From cf73289a8f737c45d652f109e6ca17a26a99b34c Mon Sep 17 00:00:00 2001 From: Noah Stride Date: Fri, 10 Jan 2025 13:25:02 +0000 Subject: [PATCH] Update protoc-gen-terraform to v3.0.2 (#50943) --- integrations/terraform/Makefile | 2 +- integrations/terraform/README.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/integrations/terraform/Makefile b/integrations/terraform/Makefile index 8530f8de01af4..72654a93fa6a2 100644 --- a/integrations/terraform/Makefile +++ b/integrations/terraform/Makefile @@ -46,7 +46,7 @@ $(BUILDDIR)/terraform-provider-teleport_%: terraform-provider-teleport-v$(VERSIO CUSTOM_IMPORTS_TMP_DIR ?= /tmp/protoc-gen-terraform/custom-imports # This version must match the version installed by .github/workflows/lint.yaml -PROTOC_GEN_TERRAFORM_VERSION ?= v3.0.0 +PROTOC_GEN_TERRAFORM_VERSION ?= v3.0.2 PROTOC_GEN_TERRAFORM_EXISTS := $(shell protoc-gen-terraform version 2>&1 >/dev/null | grep 'protoc-gen-terraform $(PROTOC_GEN_TERRAFORM_VERSION)') .PHONY: gen-tfschema diff --git a/integrations/terraform/README.md b/integrations/terraform/README.md index e927011a19d2b..5a78b4fb07dc3 100644 --- a/integrations/terraform/README.md +++ b/integrations/terraform/README.md @@ -7,9 +7,10 @@ Please, refer to [official documentation](https://goteleport.com/docs/admin-guid ## Development 1. Install [`protobuf`](https://grpc.io/docs/protoc-installation/). -2. Install [`protoc-gen-terraform`](https://github.com/gravitational/protoc-gen-terraform). - ```go install github.com/gravitational/protoc-gen-terraform@main``` +2. Install [`protoc-gen-terraform`](https://github.com/gravitational/protoc-gen-terraform) @v3.0.2. + + ```go install github.com/gravitational/protoc-gen-terraform/v3@v3.0.2``` 3. Install [`Terraform`](https://learn.hashicorp.com/tutorials/terraform/install-cli) v1.1.0+. Alternatively, you can use [`tfenv`](https://github.com/tfutils/tfenv). Please note that on Mac M1 you need to specify `TFENV_ARCH` (ex: `TFENV_ARCH=arm64 tfenv install 1.1.6`).