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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ