You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 5, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/guides/creatingasource.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
# Creating a Source
2
2
3
+
!!! Info "Installation"
4
+
Make sure you have completed the installation [procedure](installation.md) before continuing with any of the guides.
5
+
3
6
In this guide we will create a point to point Bridge between an AWS SQS queue and a microservice application called `sockeye` which displays events in a web interface. This simple flow is depicted below.
4
7
5
8

@@ -39,7 +42,7 @@ $ kubectl get ksvc sockeye -o=jsonpath='{.status.url}'
39
42
40
43
## Create a AWS SQS Event source
41
44
42
-
You can explore the specification of the object using the `kubectl explain` command. You will see that you need the ARN (i.e Amazon Resource Name) of your AWS SQS queue and you need your AWS API keys.
45
+
You can explore the specification of the object using the `kubectl explain` command. You will see that you need the ARN (i.e Amazon Resource Name) of your AWS SQS queue and the AWS API keys that give you access to SQS.
43
46
44
47
45
48
```console
@@ -70,6 +73,17 @@ FIELDS:
70
73
The destination of events sourced from Amazon SQS.
71
74
```
72
75
76
+
Create a secret called `awscreds` which contains your access key and your secret key like so:
Then, write a YAML manifest for your SQS source similar to the one below. The following sample points to a SQS queue, referenced by its ARN and a secret called `awscreds`.
85
+
86
+
73
87
```yaml
74
88
apiVersion: sources.triggermesh.io/v1alpha1
75
89
kind: AWSSQSSource
@@ -93,9 +107,11 @@ spec:
93
107
name: sockeye
94
108
```
95
109
110
+
Create this source with the `kubectl apply -f` command.
0 commit comments