This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, jsonify | |
import boto3 | |
import json | |
app = Flask(__name__) | |
# Initialize the AWS Lambda client | |
lambda_client = boto3.client('lambda', region_name='your-region') | |
def invoke_lambda_function(payload): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import json | |
# Configure logging | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
def context_to_dict(context): | |
"""Convert the Lambda context object to a serializable dictionary.""" | |
context_dict = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logstash Configuration for Mesos Masters and Slaves | |
input { | |
file { | |
path => "/var/log/mesos/mesos-master.[EIFW]*" | |
tags => [ | |
"master" | |
] | |
} | |
file { |