Skip to content

Commit

Permalink
Added variable to provide dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
chandan-singh committed Jun 14, 2020
1 parent 30e23b8 commit b978cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}


0 comments on commit b978cff

Please sign in to comment.