Skip to content

Example for an SQS event with https://www.localstack.cloud/ #2995

Answered by juthrbog
hanneskaeufler asked this question in Q&A
Discussion options

You must be logged in to vote

You can specify both endpoint and queue together in your EventSource to accomplish this.

For example:

apiVersion: argoproj.io/v1alpha1
kind: EventSource
metadata:
  name: example
  namespace: localdev-example
spec:
  eventBusName: example
  sqs:
    example:
      jsonBody: true
      accessKey:
        name: example-sqs-creds
        key: access_key
      secretKey:
        name: example-sqs-creds
        key: secret_key
      region: us-east-1
      endpoint: <ENDPOINT FOR LOCALSTACK HERE>
      queue: <QUEUE NAME HERE>

In my case, I have localstack running in a k3d cluster so I have the following endpoint value: localstack.default.svc.cluster.local:4566.

IIRC, if you're running locals…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@juthrbog
Comment options

Answer selected by hanneskaeufler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants