Skip to content

Commit

Permalink
for
Browse files Browse the repository at this point in the history
  • Loading branch information
zc-hmcts committed Mar 5, 2024
1 parent c48fe0c commit e66f5d3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ locals {
"mfa.html",
]
b2c_container_name = "${var.product}-b2c-container"
content_type = strcontains(each.value, ".html") ? "text/html" : strcontains(each.value, ".css") ? "text/css" : strcontains(each.value, ".png") ? "image/x-png" : strcontains(each.value, ".ico") ? "image/x-ico" : strcontains(each.value, ".svg") ? "image/svg+xml" : "application/octet-stream"
content_type = {
for file in local.b2c_files : file =>
file == strcontains(each.value, ".html") ? "text/html" :
file == strcontains(each.value, ".css") ? "text/css" :
file == strcontains(each.value, ".png") ? "image/x-png" :
file == strcontains(each.value, ".ico") ? "image/x-ico" :
strcontains(each.value, ".svg") ? "image/svg+xml" :
"application/octet-stream"
}

containers = [{
name = local.b2c_container_name
access_type = "container"
Expand Down

0 comments on commit e66f5d3

Please sign in to comment.