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 年前219 查看次数
1 回答
0

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

已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则