Skip to content

Commit b65112e

Browse files
committed
publish
1 parent 4a102ec commit b65112e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

terraform/redis_sync_lambda.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@ output "redis_sync_files" {
2020
# excludes = ["test/*", "*.zip", "build/*", "venv/*"]
2121
# }
2222

23+
resource "null_resource" "chmod_package_lambda" {
24+
provisioner "local-exec" {
25+
command = "chmod +x ${path.module}/package_lambda.sh"
26+
}
27+
}
28+
2329
resource "null_resource" "package_lambda" {
2430
provisioner "local-exec" {
2531
command = "${path.module}/package_lambda.sh ${local.redis_sync_dir}"
2632
}
27-
33+
depends_on = [null_resource.chmod_package_lambda]
2834
triggers = {
2935
src_hash = sha1(join("", fileset(local.redis_sync_dir, "**")))
3036
toml_hash = filesha1("${local.redis_sync_dir}/pyproject.toml")

0 commit comments

Comments
 (0)