-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLT-1422:Added tenant context for back up storage location (#523)
* PLT-1422:Added tenanat context for back up storage location * fix reviewble * removed context in data sourrce
- Loading branch information
1 parent
fe86180
commit 72dc10d
Showing
5 changed files
with
43 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 22 additions & 21 deletions
43
examples/resources/spectrocloud_backup_storage_location/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
resource "spectrocloud_backup_storage_location" "bsl1" { | ||
name = "dev-backup-s3" | ||
name = "aaa-project-dev-1" | ||
context = "project" | ||
is_default = false | ||
region = "us-east-2" | ||
bucket_name = "dev-backup" | ||
region = "us-east-1" | ||
bucket_name = "project-backup-2" | ||
s3 { | ||
credential_type = var.credential_type | ||
access_key = var.aws_access_key | ||
secret_key = var.aws_secret_key | ||
credential_type = "secret" | ||
access_key = "access_key" | ||
secret_key = "secret_key" | ||
s3_force_path_style = false | ||
|
||
#s3_url = "http://10.90.78.23" | ||
s3_url = "http://10.90.78.23" | ||
} | ||
} | ||
|
||
resource "spectrocloud_backup_storage_location" "bsl2" { | ||
name = "prod-backup-s3" | ||
is_default = false | ||
region = "us-east-2" | ||
bucket_name = "prod-backup" | ||
s3 { | ||
credential_type = var.credential_type | ||
arn = var.arn | ||
external_id = var.external_id | ||
s3_force_path_style = false | ||
#s3_url = "http://10.90.78.23" | ||
} | ||
} | ||
#resource "spectrocloud_backup_storage_location" "bsl2" { | ||
# name = "tenant-dev-1" | ||
# context = "tenant" | ||
# is_default = false | ||
# region = "us-east-2" | ||
# bucket_name = "tenant-backup-2" | ||
# s3 { | ||
# credential_type = "sts" | ||
# arn = "arn_role" | ||
# external_id = "external_id" | ||
# s3_force_path_style = false | ||
# #s3_url = "http://10.90.78.23" | ||
# } | ||
#} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters