13 lines
461 B
Terraform
13 lines
461 B
Terraform
|
|
locals {
|
||
|
|
app_version = var.tag
|
||
|
|
commands = [
|
||
|
|
"pip install --no-cache-dir -r /exporter/requirements.txt -t /tmp/python",
|
||
|
|
"PYTHONPATH=/tmp/python exec python /exporter/exporter.py"
|
||
|
|
]
|
||
|
|
exporter_script = file("${path.module}/resources/exporter_${var.devolo_model}.py")
|
||
|
|
requirements_txt = file("${path.module}/resources/requirements.txt")
|
||
|
|
|
||
|
|
exporter_checksum = md5(local.exporter_script)
|
||
|
|
requirements_checksum = md5(local.requirements_txt)
|
||
|
|
}
|