Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.82 KB

File metadata and controls

43 lines (32 loc) · 1.82 KB

Amazon Cognito User Pool event source for Knative Eventing

This event source consumes notifications from a Amazon Cognito User Pool and sends them as CloudEvents to an arbitrary event sink.

Contents

  1. Prerequisites
  2. Deployment to Kubernetes

Prerequisites

Deployment to Kubernetes

The Amazon Cognito User Pool event source can be deployed to Kubernetes as an AWSCognitoUserPoolSource object, to a cluster where the TriggerMesh AWS Event Sources Controller is running.

ℹ️ The sample manifest below references AWS credentials (Access Key) from a Kubernetes Secret object called awscreds. This Secret can be generated with the following command:

$ kubectl -n <my_namespace> create secret generic awscreds \
  --from-literal=aws_access_key_id=<my_key_id> \
  --from-literal=aws_secret_access_key=<my_secret_key>

Alternatively, credentials can be used as literal strings instead of references to Kubernetes Secrets by replacing valueFrom attributes with value inside API objects' manifests.

Copy the sample manifest from config/samples/awscognitouserpoolsource.yaml and replace the pre-filled spec attributes with the values corresponding to your Amazon Cognito User Pool. Then, create that AWSCognitoUserPoolSource object in your Kubernetes cluster:

$ kubectl -n <my_namespace> create -f my-awscognitouserpoolsource.yaml