pguptajsq commented on issue #5963:
URL: https://github.com/apache/camel-k/issues/5963#issuecomment-2513781688
Okay , apiVersion: camel.apache.org/v1
kind: Pipe
metadata:
name: sqs-to-ibmmq
namespace: camel-k
labels:
annotations:
trait.camel.apache.org/kubernetes.volumes: |
volumes:
- name: aws-credentials-volume
secret:
secretName: camel-sqs-cred # Reference the secret where AWS
credentials are stored
volumeMounts:
- mountPath: /etc/camel/resources.d/_secrets/camel-sqs-cred # Mount
path for the secret
name: aws-credentials-volume
trait.camel.apache.org/kubernetes.env: |
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: camel-sqs-cred
key: aws-access-key-id # AWS access key from the secret
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: camel-sqs-cred
key: aws-secret-access-key # AWS secret access key from the
secret
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1
name: aws-sqs-source
properties:
queueNameOrArn: "queuename"
region: "us-west-2"
accessKey: "{{ env:AWS_ACCESS_KEY_ID }}"
secretKey: "{{ env:AWS_SECRET_ACCESS_KEY }}"
sink:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1
name: jms-ibm-mq-sink
properties:
channel: "test.TO.BSSB.UAT.CHAN"
destinationName: "test.UAT.BSSB.MT.INPUT"
password: "{{mq-app-password}}"
queueManager: "reat.UAT.BSSB"
serverName: "IP"
serverPort: "1414"
username: "app" , i tried this yaml also. but
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create
route source: Route(source)[From[aws2-sqs:{{queueNameOrArn}}?accessKey=xxxxxx
because of Failed to resolve endpoint: aws2-sqs://queue
name?accessKey=xxxxxx&amazonAWSHost=amazonaws.com&autoCreateQueue=false&delay=500&deleteAfterRead=true&greedy=false&maxMessagesPerPoll=1&overrideEndpoint=false&protocol=https®ion=us-west-2&secretKey=xxxxxx&sessionToken=xxxxxx&useDefaultCredentialsProvider=false&useProfileCredentialsProvider=false&useSessionCredentials=false
due to: The security token included in the request is invalid. (Service: Sqs,
Status Code: 403, Request ID: 877ef9f1-9e7d-5bf6-9e7f-a6392799a81d)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]