Skip to content

Commit

Permalink
Add an informational comment on why the trigger={} was added
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Jul 25, 2024
1 parent ecf351c commit 4b99623
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/shared/modules/cors/cors.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ resource "null_resource" "cors_header" {
interpreter = ["/bin/bash", "-c"]
command = "./cors-script.sh ${var.cf_org_name} ${var.cf_space_name} ${local.script_path}"
}
# https://github.com/hashicorp/terraform/issues/8266#issuecomment-454377049
# A clever way to get this to run every time, otherwise we would be relying on
# an md5 hash, which, once this goes into the system, will rarely (if ever)
# be updated
triggers = {
always_run = "${timestamp()}"
}
Expand Down

0 comments on commit 4b99623

Please sign in to comment.