Skip to content

Commit

Permalink
Workers do not need to have "/*"
Browse files Browse the repository at this point in the history
  • Loading branch information
antroy-madetech committed Jan 27, 2025
1 parent eca7d14 commit a60475d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data-migration/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ locals {
policy_name = "${substr(var.destination_bucket_identifier, 0, 46)}-S3MigrationPolicy"

bucket_list = flatten([for source in var.sources : [source.source_bucket_arn, "${source.source_bucket_arn}/*"] if source.source_bucket_arn != ""])
worker_role_list = flatten([for source in var.sources : [source.worker_role_arn, "${source.worker_role_arn}/*"] if source.worker_role_arn != ""])
worker_role_list = [for source in var.sources : source.worker_role_arn if source.worker_role_arn != ""]
kms_key_list = [for source in var.sources : source.source_kms_key_arn if source.source_kms_key_arn != ""]
}
2 changes: 1 addition & 1 deletion s3/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ variable "config" {
source_kms_key_arn = optional(string)
worker_role_arn = string
})),
import_sources = optional(map(object({
import_sources = optional(list(object({
source_bucket_arn = string
source_kms_key_arn = optional(string)
worker_role_arn = string
Expand Down

0 comments on commit a60475d

Please sign in to comment.