diff --git a/main.tf b/main.tf index b4d312c..30d93a5 100644 --- a/main.tf +++ b/main.tf @@ -56,6 +56,6 @@ resource "null_resource" "notify_sns_topic" { } provisioner "local-exec" { - 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}" + 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}" } }