Simple(?) question regarding Lambda, EC2 and user data

0

Hi all:

I've been digging for a while for some best practices for what I'm trying to do. I have an S3 bucket, and when an object gets added to the bucket, I want to have Lambda launch an EC2 instance. This is very straightforward, but I also want to obtain the S3 key name for the object in the user data of the new EC2 instance.

Is there a way to do this, or is the apparent absence of any documentation or best practices for this kind of scheme an indication that it's a bad architecture?

Thank you,

질문됨 4년 전218회 조회
1개 답변
0

Use the UserData argument to the boto3 ec2.run_instances method.

답변함 4년 전

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

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

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

관련 콘텐츠