Skip to content

Commit

Permalink
Renamed: lambda.py -> package.py
Browse files Browse the repository at this point in the history
It seems that lambda.py is a confusable name and we have the
package.tf file so it's better to name the helper as package.py
to make it associated as a companion script for the package.tf file.
  • Loading branch information
ahlinc committed Jun 9, 2020
1 parent 1381fd8 commit 0f7d1ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
data "external" "archive_prepare" {
count = var.create && var.create_package ? 1 : 0

program = ["python3", "${path.module}/lambda.py", "prepare"]
program = ["python3", "${path.module}/package.py", "prepare"]
working_dir = path.cwd

query = {
Expand All @@ -24,7 +24,7 @@ data "external" "archive_prepare" {
runtime = var.runtime
source_path = var.source_path
hash_extra = var.hash_extra
hash_extra_paths = jsonencode(["${path.module}/lambda.py"])
hash_extra_paths = jsonencode(["${path.module}/package.py"])
}
}

Expand All @@ -50,7 +50,7 @@ resource "null_resource" "archive" {
}

provisioner "local-exec" {
interpreter = ["python3", "${path.module}/lambda.py", "build",
interpreter = ["python3", "${path.module}/package.py", "build",
"--timestamp", data.external.archive_prepare[0].result.timestamp]
command = data.external.archive_prepare[0].result.build_plan_filename
working_dir = path.cwd
Expand Down

0 comments on commit 0f7d1ff

Please sign in to comment.