mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Merge pull request #904 from Hestia-Homes/deploy-fastapi-with-terraform
Deploy fastapi with terraform: Always install python packages
This commit is contained in:
commit
471c331df8
1 changed files with 4 additions and 0 deletions
|
|
@ -20,6 +20,10 @@ resource "aws_cloudwatch_log_group" "api_logs" {
|
|||
resource "null_resource" "pip_install" {
|
||||
count = var.requirements_file != null ? 1 : 0
|
||||
|
||||
triggers = {
|
||||
always_run = timestamp()
|
||||
}
|
||||
|
||||
provisioner "local-exec" {
|
||||
command = "pip install -r ${var.requirements_file} -t ${var.source_dir} --platform manylinux2014_x86_64 --implementation cp --python-version 3.11 --only-binary=:all: --upgrade"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue