# Lambda function to refuse concurrent connections data "archive_file" "lambda_connection_authorization" { type = "zip" source_file = "${path.module}/files/connection_authorization/connection_handler.py" # 0666 results in "more consistent behavior" according to https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/archive_file output_file_mode = "0666" output_path = "${path.module}/files/connection_authorization/connection_handle.zip" } resource "aws_iam_role" "lambda_connection_authorization" { name = "awsclientvpn-connection-handler" path = "/lambda/" assume_role_policy = <