Run python file, it is on the Windows EC2 instance when lambda triggering

0

I am currently working on a client project that involves a Windows EC2 instance and a Lambda function on the same AWS account.

My task is to ensure that when the Lambda function is triggered, a Python file on the EC2 instance is executed, and all output can be viewed through CloudWatch logs using Python.

Is anyone here to guide me?

질문됨 8달 전366회 조회
1개 답변
0

One way I can think to do this is simply to make the lambda function place a message into an SQS Queue. Then from the Windows instance, consume messages from the queue using one of our SDKs (such as the .NET SDK - https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/ReceiveMessage.html).

On receiving the appropriate message, invoke the Python script on your Windows machine. You can use the Boto3 SDK to send the output logs to CloudWatch logs.

AWS
전문가
답변함 8달 전
profile pictureAWS
전문가
검토됨 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠