Skip to content

Instantly share code, notes, and snippets.

@manavskohli
Last active February 14, 2019 18:36
Show Gist options
  • Save manavskohli/a96be8c77be30a7cca80bc8146863db0 to your computer and use it in GitHub Desktop.
Save manavskohli/a96be8c77be30a7cca80bc8146863db0 to your computer and use it in GitHub Desktop.
# ...
resource "aws_sns_topic_subscription" "topic_lambda_sync_bucket_1" {
topic_arn = "${aws_sns_topic.s3_fanout.arn}"
protocol = "lambda"
endpoint = "${aws_lambda_function.source_to_target_1_sync.arn}"
}
resource "aws_sns_topic_subscription" "topic_lambda_sync_bucket_2" {
topic_arn = "${aws_sns_topic.s3_fanout.arn}"
protocol = "lambda"
endpoint = "${aws_lambda_function.source_to_target_2_sync.arn}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment