This
({{ env:AWS_ACCESS_KEY_ID }})
Should be RAW({{ env:AWS_ACCESS_KEY_ID }})
Same for the secret key. I wrote it above
Il mar 3 dic 2024, 10:05 pguptajsq (via GitHub) <[email protected]> ha scritto:
>
> pguptajsq commented on issue #5963:
> URL: https://github.com/apache/camel-k/issues/5963#issuecomment-2513928561
>
> `apiVersion: camel.apache.org/v1
> kind: Pipe
> metadata:
> name: test-backend-sqs-to-ibmmq-pavan
> namespace: camel-k
> labels:
> helm.sh/chart: universal-chart_v2.48.4
> app: test-backend
> junipersquare.com/initiating_pull_request: pr-1427
> junipersquare.com/initiating_repo: test-backend
> junipersquare.com/requestor: euanlau
> tags.datadoghq.com/env: prpay1427
> tags.datadoghq.com/version: pr-1427
> annotations:
> app: payments-backend1
> department: eng
> junipersquare.com/initiating_pull_request: pr-1427
> junipersquare.com/initiating_repo: test-backend1
> junipersquare.com/requestor: euanlau
> product: gpx fa
> tags.datadoghq.com/env: prpay1427
> tags.datadoghq.com/version: pr-1427
> team: payments
> annotations:
> app: payments-backend1
> 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: "JSQ.UAT.BSSB"
> serverName: "ip"
> serverPort: "1414"
> username: "app"`
>
>
> --
> 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]
>
>