# README
AWS CodeCommit event source for Knative Eventing
This event source consumes messages from a AWS CodeCommit repository and sends them as CloudEvents to an arbitrary event sink.
Contents
Prerequisites
- Register an AWS account
- Create an Access Key in your AWS IAM dashboard.
- Create a CodeCommit repository.
Deployment to Kubernetes
The AWS CodeCommit event source can be deployed to Kubernetes as an AWSCodeCommitSource
object, to a cluster where
the TriggerMesh AWS Event Sources Controller is running.
:information_source: 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 withvalue
inside API objects' manifests.
Copy the sample manifest from config/samples/awscodecommitsource.yaml
and replace the pre-filled spec
attributes
with the values corresponding to your AWS CodeCommit repository. Then, create that AWSCodeCommitSource
object in
your Kubernetes cluster:
$ kubectl -n <my_namespace> create -f my-awscodecommitsource.yaml