data "archive_file" "predict_updater" { type = "zip" source_file = "predict_updater/lambda_function.py" output_path = "${path.module}/build/predict_updater.zip" } resource "aws_iam_role" "predict_updater" { path = "/service-role/" name = "predict-updater" assume_role_policy = <