data "archive_file" "sqs_to_elk" { type = "zip" source_file = "sqs-to-elk/lambda_function.py" output_path = "${path.module}/build/sqs-to-elk.zip" } resource "aws_iam_role" "sqs_to_elk" { path = "/service-role/" name = "sqs-to-elk" assume_role_policy = <