aws-kinesis-channel

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2020 License: Apache-2.0

README

Go Report Card

AWS Kinesis Event Channel Controller

This Kubernetes controller provides AWS Kinesis backed Event Channels. Use it instead of the Kafka or GCP PuSub for message persistence and to get events from AWS.

Deploy and Development

Custom resource definition may be deployed by running following command:

kubectl apply -f release/

For development purpose we are using ko tool which may be used to build and deploy CRD from sources:

ko apply -f config/

This will take all the configurations and deploy the AWS Kinesis CRD on your cluster to knative-eventing namespace. Change configurations if needed.

To see it's running use:

kubectl -n knative-eventing get pods -l messaging.triggermesh.dev/channel=kinesis-channel

Usage

In order for a channel to be created on our AWS account, you need to create a kubernetes secret with aws_access_key_id and aws_secret_access_key keys with valid values.

Once the secret is created (e.g awscreds) you can deploy a AWS Kinesis Channel like so:

cat <<EOF | kubectl apply -f -
apiVersion: messaging.triggermesh.dev/v1alpha1
kind: KinesisChannel
metadata:
  name: aws-kinesis-test
spec:
  stream_name: triggermesh-test-stream
  account_region: us-east-2
  account_creds: awscreds
EOF

As soon as aws-kinesis-test channel becomes ready you can subscribe to it with different services.

Support

We would love your feedback and help on this project, so don't hesitate to let us know what is wrong and how we could improve them, just file an issue or join those of use who are maintaining them and submit a PR.

Code of conduct

This project is by no means part of CNCF but we abide by its code of conduct.

Directories

Path Synopsis
cmd
pkg
apis/messaging/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.
client/clientset/internalclientset
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/internalclientset/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/internalclientset/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/internalclientset/typed/messaging/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/internalclientset/typed/messaging/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL