Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Attempt to fix aws/ec2 with :filters parameter #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gleefre
Copy link

@Gleefre Gleefre commented Jun 3, 2023

Probably fixes #30

Disclaimer: I'm not sure at all that it fixes the issue - I don't have enough knowledge to be sure that it doesn't break anything, and I don't even know how to test if this works properly - I don't use aws.

Still, I hope that it is a correct fix or it will be at least useful.

@@ -66,7 +66,8 @@
append (to-query-params k v)))
(loop for i from 1
for v in value
collect (cons (format nil "~A.member.~A" key i) v))))
append (to-query-params (format nil "~A.member.~A" key i)
(aws-sdk/generator/shape::input-params v)))))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, tried this, (though my quicklisp dist of aws-sdk is apparently behind the version edited here). I now get as far as making the request but get a 400 response saying "The parameter Filters is not recognized".

This is on the stack, may indicate the malformed request. Not having done much at the request level I can't say if it's valid, though I'm thinking it's supposed to be Filter.N, not Filter.member.N.

#<QURI.URI.HTTP:URI-HTTPS https://ec2.us-east-1.amazonaws.com/?Action=DescribeInstances&Version=2016-11-15&Filters.member.1.Name=tag%3AName&Filters.member.1.Values.member.1=dev-19587>

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html - though I haven't checked if that is the version being used by aws-sdk

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ec2 doesn't work with :filters parameter
2 participants