Skip to content

Instantly share code, notes, and snippets.

@manavskohli
Last active February 14, 2019 18:39
Show Gist options
  • Save manavskohli/b55550cb7b83c7640142c0f38f801374 to your computer and use it in GitHub Desktop.
Save manavskohli/b55550cb7b83c7640142c0f38f801374 to your computer and use it in GitHub Desktop.
resource "aws_lambda_function" "source_to_target_1_sync" {
function_name = "source_to_target_1_sync"
filename = "${data.archive_file.push_to_bucket_1.output_path}"
source_code_hash = "${data.archive_file.push_to_bucket_1.output_base64sha256}"
role = "${aws_iam_role.source_to_target_sync.arn}"
handler = "push_to_bucket_1.lambda_handler"
runtime = "python2.7"
}
resource "aws_lambda_function" "source_to_target_2_sync" {
function_name = "source_to_target_2_sync"
filename = "${data.archive_file.push_to_bucket_2.output_path}"
source_code_hash = "${data.archive_file.push_to_bucket_2.output_base64sha256}"
role = "${aws_iam_role.source_to_target_sync.arn}"
handler = "push_to_bucket_2.lambda_handler"
runtime = "python2.7"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment