Skip to content

Commit e69a817

Browse files
fix(sd-4482): make python run in a virtual env
1 parent 8ff7423 commit e69a817

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)