Skip to content

Commit a5c7da4

Browse files
Merge pull request #9 from Daemon-Solutions/sd-4482
fix(sd-4482): make python run in a virtual env
2 parents 8347a15 + e69a817 commit a5c7da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ resource "null_resource" "notify_sns_topic" {
5656
}
5757

5858
provisioner "local-exec" {
59-
command = "pip install boto3 && python ${path.module}/include/publish.py ${data.aws_region.current[0].name} ${element(var.asg_names, count.index)} ${aws_sns_topic.manage_dns_asg_sns[0].arn}"
59+
command = "python3 -m venv /tmp/venv && source /tmp/venv/bin/activate && pip install boto3 && python ${path.module}/include/publish.py ${data.aws_region.current[0].name} ${element(var.asg_names, count.index)} ${aws_sns_topic.manage_dns_asg_sns[0].arn}"
6060
}
6161
}

0 commit comments

Comments
 (0)