Skip to content

Commit

Permalink
PLT-1499:Rewamped bsl example. (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM authored Nov 21, 2024
1 parent f53f5ba commit b04a9de
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/resources/backup_storage_location.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
42 changes: 21 additions & 21 deletions examples/resources/spectrocloud_backup_storage_location/resource.tf
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand All @@ -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 = ""
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion spectrocloud/resource_backup_storage_location.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit b04a9de

Please sign in to comment.