data "archive_file" "historic_to_s3" { type = "zip" source_file = "historic/historic_es_to_s3/index.py" output_path = "${path.module}/build/historic_to_s3.zip" } data "archive_file" "queue_data_update" { type = "zip" source_file = "historic/queue_data_update/index.py" output_path = "${path.module}/build/queue_data_update.zip" } resource "aws_iam_role" "historic" { path = "/service-role/" name = "historic" assume_role_policy = <