diff --git a/config/nav.yml b/config/nav.yml index 0d1c70b64b..391dcb7e84 100644 --- a/config/nav.yml +++ b/config/nav.yml @@ -253,6 +253,7 @@ nav: - IntegrationSink: - About IntegrationSink: eventing/sinks/integration-sink/README.md - AWS S3 Sink: eventing/sinks/integration-sink/aws_s3.md + - AWS SNS Sink: eventing/sinks/integration-sink/aws_sns.md - AWS SQS Sink: eventing/sinks/integration-sink/aws_sqs.md - Generic Logger Sink: eventing/sinks/integration-sink/logger.md - Flows: diff --git a/docs/eventing/sinks/README.md b/docs/eventing/sinks/README.md index d02c8b33ec..0b15bb0417 100644 --- a/docs/eventing/sinks/README.md +++ b/docs/eventing/sinks/README.md @@ -133,6 +133,7 @@ The `svc` in `http://event-display.svc.cluster.local` determines that the sink i | Name | Maintainer | Description | |----------------------------------------------------------------------------------| -- |--------------------------------------| | [Amazon S3 Sink](./integration-sink/aws_s3.md) | Knative | Send events to AWS S3 bucket | +| [Amazon SNS Sink](./integration-sink/aws_sns.md) | Knative | Send events to AWS SNS topic | | [Amazon SQS Sink](./integration-sink/aws_sqs.md) | Knative | Send events to AWS SQS queue | | [JobSink](job-sink.md) | Knative | Trigger long-running background jobs | | [KafkaSink](kafka-sink.md) | Knative | Send events to a Kafka topic | diff --git a/docs/eventing/sinks/integration-sink/README.md b/docs/eventing/sinks/integration-sink/README.md index fa971b9de3..a928264451 100644 --- a/docs/eventing/sinks/integration-sink/README.md +++ b/docs/eventing/sinks/integration-sink/README.md @@ -8,5 +8,6 @@ The `IntegrationSink` is a Knative Eventing custom resource supporting selected ## Supported Kamelet sinks * [AWS S3](./aws_s3.md) +* [AWS SNS](./aws_sns.md) * [AWS SQS](./aws_sqs.md) * [Generic logger](./logger.md) diff --git a/docs/eventing/sinks/integration-sink/aws_s3.md b/docs/eventing/sinks/integration-sink/aws_s3.md index 77e3755dac..de3d411836 100644 --- a/docs/eventing/sinks/integration-sink/aws_s3.md +++ b/docs/eventing/sinks/integration-sink/aws_s3.md @@ -4,7 +4,7 @@ The `IntegrationSink` supports the Amazon Web Services (AWS) S3 service, through ## Amazon credentials -For connecting to AWS the `IntegrationSink` uses Kubernetes `Secret`, present in the namespace of the reSink. The `Secret` can be created like: +For connecting to AWS the `IntegrationSink` uses Kubernetes `Secret`, present in the namespace of the resource. The `Secret` can be created like: ```bash kubectl -n create secret generic my-secret --from-literal=aws.accessKey= --from-literal=aws.secretKey= diff --git a/docs/eventing/sinks/integration-sink/aws_sns.md b/docs/eventing/sinks/integration-sink/aws_sns.md new file mode 100644 index 0000000000..ea6600b0d4 --- /dev/null +++ b/docs/eventing/sinks/integration-sink/aws_sns.md @@ -0,0 +1,35 @@ +# AWS Simple Notification Service Sink + +The `IntegrationSink` supports the Amazon Web Services (AWS) Simple Notification Service (SNS) service, through its `aws.sns` property. + +## Amazon credentials + +For connecting to AWS the `IntegrationSink` uses Kubernetes `Secret`, present in the namespace of the resource. The `Secret` can be created like: + + ```bash + kubectl -n create secret generic my-secret --from-literal=aws.accessKey= --from-literal=aws.secretKey= + ``` + +## AWS SQS Sink Example + +Below is an `IntegrationSink` to send data to AWS SNS: + + ```yaml + apiVersion: sinks.knative.dev/v1alpha1 + kind: IntegrationSink + metadata: + name: integration-sink-aws-sns + namespace: knative-samples + spec: + aws: + sns: + arn: "my-topic" + region: "eu-north-1" + auth: + secret: + ref: + name: "my-secret" + ``` +Inside of the `aws.sns` object we define the name of the topic (or _arn_) and its region. The credentials for the AWS service are referenced from the `my-secret` Kubernetes `Secret` + +More details about the Apache Camel Kamelet [aws-sns-sink](https://camel.apache.org/camel-kamelets/latest/aws-sns-sink.html). diff --git a/docs/eventing/sinks/integration-sink/aws_sqs.md b/docs/eventing/sinks/integration-sink/aws_sqs.md index ea7392b719..effa117075 100644 --- a/docs/eventing/sinks/integration-sink/aws_sqs.md +++ b/docs/eventing/sinks/integration-sink/aws_sqs.md @@ -4,7 +4,7 @@ The `IntegrationSink` supports the Amazon Web Services (AWS) Simple Queue Servic ## Amazon credentials -For connecting to AWS the `IntegrationSink` uses Kubernetes `Secret`, present in the namespace of the reSink. The `Secret` can be created like: +For connecting to AWS the `IntegrationSink` uses Kubernetes `Secret`, present in the namespace of the resource. The `Secret` can be created like: ```bash kubectl -n create secret generic my-secret --from-literal=aws.accessKey= --from-literal=aws.secretKey=