From b04a9dec3976d75675e43a4bc9474dc16be428f9 Mon Sep 17 00:00:00 2001 From: Sivaanand Murugesan Date: Thu, 21 Nov 2024 13:01:44 +0530 Subject: [PATCH] PLT-1499:Rewamped bsl example. (#551) --- docs/resources/backup_storage_location.md | 2 +- .../resource.tf | 42 +++++++++---------- .../resource_backup_storage_location.go | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/docs/resources/backup_storage_location.md b/docs/resources/backup_storage_location.md index 6a9cfc37..d31358b7 100644 --- a/docs/resources/backup_storage_location.md +++ b/docs/resources/backup_storage_location.md @@ -63,7 +63,7 @@ resource "spectrocloud_backup_storage_location" "bsl2" { - `is_default` (Boolean) Specifies if this backup storage location should be used as the default location for storing backups. - `region` (String) The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services. - `s3` (Block List, Max: 1) S3-specific settings for configuring the backup storage location. (see [below for nested schema](#nestedblock--s3)) -- `storage_provider` (String) The location provider for backup storage location. Allowed values are `aws` or `minio` or `gcp` or `azure`. Default value is `aws`. +- `storage_provider` (String) The storage location provider for backup storage. Allowed values are `aws` or `minio` or `gcp` or `azure`. Default value is `aws`. - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only diff --git a/examples/resources/spectrocloud_backup_storage_location/resource.tf b/examples/resources/spectrocloud_backup_storage_location/resource.tf index f3c5f1e4..ed424547 100644 --- a/examples/resources/spectrocloud_backup_storage_location/resource.tf +++ b/examples/resources/spectrocloud_backup_storage_location/resource.tf @@ -1,11 +1,11 @@ // S3 Backup location with secret credential type example resource "spectrocloud_backup_storage_location" "bsl_s3" { - name = "project-dev-bsl-s3" - context = "project" - location_provider = "aws" - is_default = false - region = "us-east-1" - bucket_name = "project-backup-bucket-s3" + name = "project-dev-bsl-s3" + context = "project" + storage_provider = "aws" + is_default = false + region = "us-east-1" + bucket_name = "project-backup-bucket-s3" s3 { credential_type = "secret" access_key = "test-access-key-s3" @@ -17,12 +17,12 @@ resource "spectrocloud_backup_storage_location" "bsl_s3" { // Minio Backup location with secret credential type example resource "spectrocloud_backup_storage_location" "bsl_minio" { - name = "project-dev-minio-bsl" - context = "project" - location_provider = "minio" - is_default = false - region = "us-east-2" - bucket_name = "project-backup-bucket-minio" + name = "project-dev-minio-bsl" + context = "project" + storage_provider = "minio" + is_default = false + region = "us-east-2" + bucket_name = "project-backup-bucket-minio" s3 { credential_type = "secret" access_key = "test-access-key-minio" @@ -34,11 +34,11 @@ resource "spectrocloud_backup_storage_location" "bsl_minio" { // GCP Backup location example resource "spectrocloud_backup_storage_location" "bsl_gcp" { - name = "project-dev-gcp" - context = "project" - location_provider = "gcp" - is_default = false - bucket_name = "project-backup-bucket-gcp" + name = "project-dev-gcp" + context = "project" + storage_provider = "gcp" + is_default = false + bucket_name = "project-backup-bucket-gcp" gcp_storage_config { project_id = "test-gcp-project-id" gcp_json_credentials = "" @@ -47,10 +47,10 @@ resource "spectrocloud_backup_storage_location" "bsl_gcp" { // Azure Backup location example resource "spectrocloud_backup_storage_location" "bsl_azure" { - name = "project-dev-azure-bsl" - context = "project" - location_provider = "azure" - is_default = false + name = "project-dev-azure-bsl" + context = "project" + storage_provider = "azure" + is_default = false azure_storage_config { container_name = "test-container" storage_name = "test-storage" diff --git a/spectrocloud/resource_backup_storage_location.go b/spectrocloud/resource_backup_storage_location.go index bb5aee96..dba48f35 100644 --- a/spectrocloud/resource_backup_storage_location.go +++ b/spectrocloud/resource_backup_storage_location.go @@ -48,7 +48,7 @@ func resourceBackupStorageLocation() *schema.Resource { StorageProviderGCP, StorageProviderAzure, }, false), - Description: "The location provider for backup storage location. Allowed values are `aws` or `minio` or `gcp` or `azure`. " + + Description: "The storage location provider for backup storage. Allowed values are `aws` or `minio` or `gcp` or `azure`. " + "Default value is `aws`.", }, "context": {