Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLT-1499: Revamped BSL examples. #551

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading