-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with setting SQS queue #1068
Comments
Can you try to specify
|
I did created this sqs queue with same AWS credentials witch i'm using to argo eventsource.
is repeated few times before this error. I did also added env What i also did is entered
and they are present and ofc XXXX have correct values. Whats more interesting i did passed empty or not correct aws credentials, and the log looks still the same. |
Have you added |
Yep, as pointed in previous message i did tried that, but no luck:
|
We are also facing the same issue, let us know if more information is needed. |
Fixed it by creating a new user and attaching a sqs access policy. Using the access key and secret from this user in the aws-secret.yaml. Initially we were trying to connect using a AWS role. |
@santoshsb - thanks for the update! I would assume the problem is still the permission issue, @tomaszkrys - could you check it again? |
I'm still having the issue even after checking the keys and the permissions in AWS @santoshsb could you please share your secrets.yaml (of course without the keys, I only would like to see the layout), and also the eventsource.yaml? Also what permissions did you provide to the aws user for SQS? Another thing, what version of Argo Events are you using? |
@phelinor here is the secrets.yaml file
eventsource.yaml
We created a new user called argo-events in IAM, with the following policy attached, than created the access key and secret key for this user to use in the aws-secret.yaml We added this user ARN to the SQS queue access policy,
Creation of the new user with the AmazonSQSFullAccess policy and attaching this user to the SQS queue policy receiver statement got it up and running. Hope this helps. |
@santoshsb thanks much for your answers. just one more, what Argo Events Version are you using? |
@phelinor here is what I found by looking at the deployed controller files,
If there is a command to get the overall Argo Events version do let us know, will run the same. argo: v2.9.1 |
@santoshsb thanks again, that is what I need |
@whynowy sorry to keep bugging but after trying the above suggestions I continue to have the same issue with the EventSource in my LOCAL cluster. This is my setup:
The main difference is I'm providing the AWS queueAccountId: "164506......." (also tried not providing it, same results) These are the last error messages I get:
|
@phelinor - What is the cluster you are running? Could you confirm if it has the connectivity to AWS? Also, if you could try out the latest v1.3.0-rc1 release, it prints out the error log if there's an issue with fetching queue URL. |
New Errors:
|
@phelinor - From the error log, I can tell the problem is caused by
|
@whynowy In fact "AKIASMTKSX7MFVOYAM6E" is the Access Key that I'm using to access AWS, after decoding the base64 text I can see that it does not contain any "\n" in it I don't know what "\n/20210326" stands for. |
I recommend you to create secrets with command like following instead of doing encoding by yourself.
|
@whynowy, @tomaszkrys Just to mention that with version v1.3.0-rc2 it worked fine in my local cluster. thanks for all the help.
Argo and Argo Events in cluster wide installations |
Thanks @phelinor . Even I was facing the same issue. |
I am completely new to this.Can anyone help me setup sqs for argo events from scratch please @phelinor |
Describe the bug
We are creating EventSource on EKS k8s cluster that should consume from SQS
To Reproduce
Steps to reproduce the behavior:
we also have aws secrets as in the example:
we can see in logs that it is trying to generate aws sqs url, but because of some reason it is failling:
Expected behavior
Consume SQS messages
Environment (please complete the following information):
Additional context
Webhooks are working without any problems
Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: