Skip to content

Commit

Permalink
Build Fastly function during terraform plan
Browse files Browse the repository at this point in the history
The Fastly function is now built whenever `terraform plan` is run. This
This ensures that the function is always up to date, and prevents users
from accidentally uploading a stale version of the WASM module.

This is implemented using an external data source [^1] inside Terraform.
The data source calls a script that compiles the function and returns
the path to the artifact.

[^1]: https://registry.terraform.io/providers/hashicorp/external/latest/docs/data-sources/data_source
  • Loading branch information
jdno committed Dec 21, 2022
1 parent 986d062 commit 509df69
Show file tree
Hide file tree
Showing 7 changed files with 475 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
members = [
"setup-deploy-keys",
"ansible/roles/dev-desktop/files/team_login",
"terragrunt/modules/crates-io/compute-static"
]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 509df69

Please sign in to comment.