Skip to content

Commit

Permalink
PLT-866: Added support for credential type secret for OCI registry an…
Browse files Browse the repository at this point in the history
…d backup storage (#81)

* PLT-866: Added support for credential type scret for OCI registry and backup storage

* removed default value in cred type
  • Loading branch information
SivaanandM authored Dec 6, 2023
1 parent d2b0e3a commit 9d154a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions spectro-registry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ resource "spectrocloud_registry_oci" "oci_registry" {
is_private = true
credentials {
credential_type = each.value.credential_type
arn = each.value.arn
external_id = each.value.external_id
arn = try(each.value.arn, "")
external_id = try(each.value.external_id, "")
access_key = try(each.value.access_key, "")
secret_key = try(each.value.secret_key, "")
}
}

Expand Down
8 changes: 5 additions & 3 deletions spectro-s3-sts-backup.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ resource "spectrocloud_backup_storage_location" "bsl" {
region = each.value.region
bucket_name = each.value.bucket_name
s3 {
credential_type = "sts"
arn = each.value.arn
external_id = each.value.external_id
credential_type = each.value.credential_type
arn = try(each.value.arn, "")
external_id = try(each.value.external_id, "")
access_key = try(each.value.access_key, "")
secret_key = try(each.value.secret_key, "")
}
}

0 comments on commit 9d154a1

Please sign in to comment.