diff --git a/main.tf b/main.tf index f82527f..85eb8f0 100644 --- a/main.tf +++ b/main.tf @@ -28,7 +28,7 @@ resource "aws_s3_bucket_object" "this" { source = "${var.source_prefix}/${each.value}" etag = var.kms_key_id != "" && var.server_side_encryption != "" ? filemd5("${var.base_folder_path}/${each.value}") : null content_type = var.set_auto_content_type ? length(regexall("^.*\\.(.*)", each.value)) > 0 ? lookup(local.extension_to_mime, element(regex("^.*\\.(.*)", each.value), 0), null) : null : var.content_type - + depends_on = [var.module_depends_on] }