github.com/argoproj/argo-events@v1.9.1/examples/event-sources/aws-sns.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: EventSource
     3  metadata:
     4    name: aws-sns
     5  spec:
     6    service:
     7      ports:
     8        - port: 12000
     9          targetPort: 12000
    10    sns:
    11      example:
    12        # arn of SNS topic
    13        topicArn: arn:aws:sns:us-east-1:XXXXXXXX:test
    14        # hook contains configuration for the HTTP server running in the event-source.
    15        # AWS will send events to following port and endpoint
    16        webhook:
    17          # endpoint to listen events on
    18          endpoint: "/"
    19          # port to run HTTP server on
    20          port: "12000"
    21          # HTTP request method to allow. In this case, only POST requests are accepted
    22          method: POST
    23          # url of the event-source service to use to register at AWS.
    24          # This url must be reachable from outside the cluster.
    25          # The event-source pod is backed by the service defined in the event-source spec. So get the URL for that service AWS can reach to.
    26          # The name for the service is in `<event-source-name>-eventsource-svc` format.
    27          # You will need to create an Ingress or Openshift Route for the event-source service so that it can be reached from AWS.
    28          url: http://url-that-is-reachable-from-AWS
    29        # accessKey contains information about K8s secret that stores the access key
    30        accessKey:
    31          # Key within the K8s secret whose corresponding value (must be base64 encoded) is access key
    32          key: accesskey
    33          # Name of the K8s secret that contains the access key
    34          name: aws-secret
    35        # secretKey contains information about K8s secret that stores the secret key
    36        secretKey:
    37          # Key within the K8s secret whose corresponding value (must be base64 encoded) is secret key
    38          key: secretkey
    39          # Name of the K8s secret that contains the secret key
    40          name: aws-secret
    41        # aws region
    42        region: us-east-1
    43  
    44  #    example-with-secure-connection:
    45  #      topicArn: "topic-arn"
    46  #      webhook:
    47  #        endpoint: "/"
    48  #        # event-source can run multiple HTTP servers, just define a unique port.
    49  #        port: "13000"
    50  #        method: "POST"
    51  #        url: "http://myfakeurl.fake"
    52  #        # k8s secret that contains the cert
    53  #        serverCertSecret:
    54  #          name: my-secret
    55  #          key: cert-key
    56  #        # k8s secret that contains the private key
    57  #        serverKeySecret:
    58  #          name: my-secret
    59  #          key: pk-key
    60  #      accessKey:
    61  #        name: aws-secret
    62  #        key: access
    63  #      secretKey:
    64  #        name: aws-secret
    65  #        key: secret
    66  #      region: "us-east-1"
    67  #
    68  #    example-without-credentials:
    69  #      # If AWS access credentials are already present on the Pod's IAM role running the event-source,
    70  #      # the AWS session will utilize the existing config and hence we do not need to provide explicit credentials.
    71  #      topicArn: "topic-arn"
    72  #      webhook:
    73  #        endpoint: "/"
    74  #        port: "13000"
    75  #        method: "POST"
    76  #        url: "http://myfakeurl.fake"
    77  #      region: "us-east-1"