AWS Cognito identity
Consumes events from AWS Cognito Identity Pools.
With tmctl
:
tmctl create source awscognitoidentity --arn <arn> --auth.credentials.accessKeyID <keyID> --auth.credentials.secretAccessKey <key>
On Kubernetes:
apiVersion: sources.triggermesh.io/v1alpha1
kind: AWSCognitoIdentitySource
metadata:
name: sample
spec:
arn: arn:aws:cognito-identity:us-west-2:123456789012:identitypool/triggermeshtest
auth:
credentials:
accessKeyID:
valueFromSecret:
name: awscreds
key: aws_access_key_id
secretAccessKey:
valueFromSecret:
name: awscreds
key: aws_secret_access_key
sink:
ref:
apiVersion: eventing.knative.dev/v1
kind: Broker
name: default
Alternatively you can use an IAM role for authentication instead of an access key and secret, for Amazon EKS only:
To setup an IAM role for service accounts, please refer to the official AWS documentation.
Events produced have the following attributes:
- type
com.amazon.cognito-identity.sync_trigger
- Schema of the
data
attribute: com.amazon.cognito-identity.sync_trigger.json
See the Kubernetes object reference for more details.