github.com/argoproj/argo-events@v1.9.1/examples/sensors/aws-lambda-trigger.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: Sensor
     3  metadata:
     4    name: webhook
     5  spec:
     6    dependencies:
     7      - name: test-dep
     8        eventSourceName: webhook
     9        eventName: example
    10    triggers:
    11      - template:
    12          name: lambda-trigger
    13          awsLambda:
    14            functionName: hello
    15            region: us-east-1
    16            payload:
    17              - src:
    18                  dependencyName: test-dep
    19                  dataKey: body.name
    20                dest: name
    21  
    22            # Optional, possible values: RequestResponse, Event and DryRun
    23            # Defaults to RequestResponse, which means invoke the function synchronously.
    24            invocationType: Event
    25  
    26            # Optional, use if ServiceAccount doesn't have IAM Role assigned.
    27            # More information on IAM roles for service accounts:
    28            # https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html
    29            accessKey:
    30              name: aws-secret
    31              key: accesskey
    32            secretKey:
    33              name: aws-secret
    34              key: secretkey
    35  
    36            # Optional, use if your IAM user/role should assume another role to
    37            # perform this action
    38            roleARN: arn:aws:iam::123456789012:role/some-role