Created
May 10, 2022 02:10
-
-
Save KyMidd/d969604e6e4e5e2198783bd32ce695d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "null_resource" "invalidate_cf_cache" { | |
provisioner "local-exec" { | |
command = "aws cloudfront create-invalidation --distribution-id ${var.cf_id} --paths '/*'" | |
} | |
triggers = { | |
website_version_changed = aws_s3_object.website.version_id | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment