Skip to content

Commit b04a9de

Browse files
authored
PLT-1499:Rewamped bsl example. (#551)
1 parent f53f5ba commit b04a9de

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

docs/resources/backup_storage_location.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ resource "spectrocloud_backup_storage_location" "bsl2" {
6363
- `is_default` (Boolean) Specifies if this backup storage location should be used as the default location for storing backups.
6464
- `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.
6565
- `s3` (Block List, Max: 1) S3-specific settings for configuring the backup storage location. (see [below for nested schema](#nestedblock--s3))
66-
- `storage_provider` (String) The location provider for backup storage location. Allowed values are `aws` or `minio` or `gcp` or `azure`. Default value is `aws`.
66+
- `storage_provider` (String) The storage location provider for backup storage. Allowed values are `aws` or `minio` or `gcp` or `azure`. Default value is `aws`.
6767
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
6868

6969
### Read-Only

examples/resources/spectrocloud_backup_storage_location/resource.tf

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// S3 Backup location with secret credential type example
22
resource "spectrocloud_backup_storage_location" "bsl_s3" {
3-
name = "project-dev-bsl-s3"
4-
context = "project"
5-
location_provider = "aws"
6-
is_default = false
7-
region = "us-east-1"
8-
bucket_name = "project-backup-bucket-s3"
3+
name = "project-dev-bsl-s3"
4+
context = "project"
5+
storage_provider = "aws"
6+
is_default = false
7+
region = "us-east-1"
8+
bucket_name = "project-backup-bucket-s3"
99
s3 {
1010
credential_type = "secret"
1111
access_key = "test-access-key-s3"
@@ -17,12 +17,12 @@ resource "spectrocloud_backup_storage_location" "bsl_s3" {
1717

1818
// Minio Backup location with secret credential type example
1919
resource "spectrocloud_backup_storage_location" "bsl_minio" {
20-
name = "project-dev-minio-bsl"
21-
context = "project"
22-
location_provider = "minio"
23-
is_default = false
24-
region = "us-east-2"
25-
bucket_name = "project-backup-bucket-minio"
20+
name = "project-dev-minio-bsl"
21+
context = "project"
22+
storage_provider = "minio"
23+
is_default = false
24+
region = "us-east-2"
25+
bucket_name = "project-backup-bucket-minio"
2626
s3 {
2727
credential_type = "secret"
2828
access_key = "test-access-key-minio"
@@ -34,11 +34,11 @@ resource "spectrocloud_backup_storage_location" "bsl_minio" {
3434

3535
// GCP Backup location example
3636
resource "spectrocloud_backup_storage_location" "bsl_gcp" {
37-
name = "project-dev-gcp"
38-
context = "project"
39-
location_provider = "gcp"
40-
is_default = false
41-
bucket_name = "project-backup-bucket-gcp"
37+
name = "project-dev-gcp"
38+
context = "project"
39+
storage_provider = "gcp"
40+
is_default = false
41+
bucket_name = "project-backup-bucket-gcp"
4242
gcp_storage_config {
4343
project_id = "test-gcp-project-id"
4444
gcp_json_credentials = ""
@@ -47,10 +47,10 @@ resource "spectrocloud_backup_storage_location" "bsl_gcp" {
4747

4848
// Azure Backup location example
4949
resource "spectrocloud_backup_storage_location" "bsl_azure" {
50-
name = "project-dev-azure-bsl"
51-
context = "project"
52-
location_provider = "azure"
53-
is_default = false
50+
name = "project-dev-azure-bsl"
51+
context = "project"
52+
storage_provider = "azure"
53+
is_default = false
5454
azure_storage_config {
5555
container_name = "test-container"
5656
storage_name = "test-storage"

spectrocloud/resource_backup_storage_location.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func resourceBackupStorageLocation() *schema.Resource {
4848
StorageProviderGCP,
4949
StorageProviderAzure,
5050
}, false),
51-
Description: "The location provider for backup storage location. Allowed values are `aws` or `minio` or `gcp` or `azure`. " +
51+
Description: "The storage location provider for backup storage. Allowed values are `aws` or `minio` or `gcp` or `azure`. " +
5252
"Default value is `aws`.",
5353
},
5454
"context": {

0 commit comments

Comments
 (0)