From 1075425eed155c26dd60692c2ea5fa61d5125ca5 Mon Sep 17 00:00:00 2001 From: William Guilherme Date: Thu, 26 Oct 2023 22:14:41 -0700 Subject: [PATCH] Fix: Fixed authentication environment variable zpa_cloud (#380) * fix: Fixed environment variable authentication for zpa_cloud * doc: Updated release notes --- CHANGELOG.md | 6 +++--- docs/guides/release-notes.md | 5 +++-- zpa/provider.go | 1 + zpa/version.go | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38c9df66..e7d362e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,17 @@ # Changelog -## 3.0.3 (October, xx 2023) +## 3.0.3 (October, 27 2023) ### Notes -- Release date: **(October, xx 2023)** +- Release date: **(October, 27 2023)** - Supported Terraform version: **v1.x** ### Fixes - [PR #375](https://github.com/zscaler/terraform-provider-zpa/pull/375) - Fixed drift issues in ``zpa_application_segment_pra`` and ``zpa_application_segment_inspection`` when setting up ``apps_config`` options. - [PR #375](https://github.com/zscaler/terraform-provider-zpa/pull/375) - Upgrade to [Zscaler-SDK-GO v2.1.3](https://github.com/zscaler/zscaler-sdk-go/releases/tag/v2.1.3). The upgrade allows searches for resources in which the name include 1 or more spaces. - +- [PR #380](https://github.com/zscaler/terraform-provider-zpa/pull/380) - Fixed provider authentication to accept `ZPA_CLOUD` via environment variables. ## 3.0.2 (September, 30 2023) diff --git a/docs/guides/release-notes.md b/docs/guides/release-notes.md index 8c933a96..fff4d533 100644 --- a/docs/guides/release-notes.md +++ b/docs/guides/release-notes.md @@ -16,17 +16,18 @@ Track all ZPA Terraform provider's releases. New resources, features, and bug fi --- -## 3.0.3 (October, xx 2023) +## 3.0.3 (October, 27 2023) ### Notes -- Release date: **(October, xx 2023)** +- Release date: **(October, 27 2023)** - Supported Terraform version: **v1.x** ### Fixes - [PR #375](https://github.com/zscaler/terraform-provider-zpa/pull/375) - Fixed drift issues in ``zpa_application_segment_pra`` and ``zpa_application_segment_inspection`` when setting up ``apps_config`` options. - [PR #375](https://github.com/zscaler/terraform-provider-zpa/pull/375) - Upgrade to [Zscaler-SDK-GO v2.1.3](https://github.com/zscaler/zscaler-sdk-go/releases/tag/v2.1.3). The upgrade allows searches for resources in which the name include 1 or more spaces. +- [PR #380](https://github.com/zscaler/terraform-provider-zpa/pull/380) - Fixed provider authentication to accept `ZPA_CLOUD` via environment variables. ## 3.0.2 (September, 30 2023) diff --git a/zpa/provider.go b/zpa/provider.go index dbde0a9c..46ebd1ef 100644 --- a/zpa/provider.go +++ b/zpa/provider.go @@ -41,6 +41,7 @@ func ZPAProvider() *schema.Provider { DefaultFunc: schema.EnvDefaultFunc("ZPA_CUSTOMER_ID", nil), Description: "zpa customer id", }, + "zpa_cloud": { Type: schema.TypeString, Optional: true, diff --git a/zpa/version.go b/zpa/version.go index 1ddf01ef..e10507c4 100644 --- a/zpa/version.go +++ b/zpa/version.go @@ -1,4 +1,4 @@ package zpa // ProviderVersion is set at build-time in the release process -var ProviderVersion = "3.0.0" +var ProviderVersion = "3.0.3"