我有一种情况,比如我想通过云托管人调用一个 lambda 函数,并希望将新创建的存储桶名称传递给该 lambda 函数。有没有办法将参数从保管人事件传递给 lambda 函数?谢谢 - 以下是我的云托管政策:-
policies:
name: lambda-s3-configure-standards-real-time
resource: aws.lambda
description: |
This policy is triggered when a new S3 bucket is created and it will invoke another lambda.
mode:
type: cloudtrail
events:
- CreateBucket
role: some-role
timeout: 200
actions:
- type: invoke-lambda
function: Lambda-function-name