Michal Kuratczyk
cfa3de4b2b
Remove unused imports (thanks elp!)
2024-05-23 16:36:08 +02:00
Rin Kuryloski
8de8f59d47
Use gazelle generated bazel files
...
Bazel build files are now maintained primarily with `bazel run
gazelle`. This will analyze and merge changes into the build files as
necessitated by certain code changes (e.g. the introduction of new
modules).
In some cases there hints to gazelle in the build files, such as `#
gazelle:erlang...` or `# keep` comments. xref checks on plugins that
depend on the cli are a good example.
2023-04-17 18:13:18 +02:00
Alexey Lebedeff
50ed7ad6f7
Fix all dialyzer warnings in AWS-related plugins
2023-01-20 15:20:26 +01:00
Luke Bakken
7fe159edef
Yolo-replace format strings
...
Replaces `~s` and `~p` with their unicode-friendly counterparts.
```
git ls-files *.erl | xargs sed -i.ORIG -e s/~s>/~ts/g -e s/~p>/~tp/g
```
2022-10-10 10:32:03 +04:00
Michael Klishin
a63248a756
rabbit_aws: adapt for Thoas-based rabbit_json
2022-07-30 03:53:49 +04:00
Vy Hong
a1a22b2a3c
Log response body of failed AWS requests
2021-10-08 14:48:40 -07:00
Bilal Acar
4d96d4099c
Started using function heads
2021-08-21 00:45:07 +03:00
Bilal Acar
50f9bcf504
Adding retries to AWS API calls
...
Adding retries to AWS API calls
2021-08-21 00:45:07 +03:00
Thuan Duong Ba
0afa9ebbe8
address review feedback
2021-04-08 12:28:59 +03:00
Thuan Duong Ba
6a515871c1
address review feedback
2021-04-08 12:28:59 +03:00
Thuan Duong Ba
3aeeed5f57
Support rabbit_peer_discovery_aws to work with instance metadata service v2 (IMDSv2).
...
IMDSv2 uses session-oriented requests. With session-oriented requests, a session token is retrieved first
then used in subsequent GET requests for instance metadata values such as instance-id, credentials, etc.
Details could be found here https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html
2021-04-08 12:28:58 +03:00
Michael Klishin
6f30bd60d2
EUnit expects a list here
2019-12-31 16:04:14 +03:00
Michael Klishin
60662817a7
Avoid doubling leading slash that messed up request signing
2019-12-31 15:35:51 +03:00
Michael Klishin
e59345ab60
Make sure instance metadata URLs are correct post uri_string refactoring
2019-12-31 12:26:33 +03:00
Michael Klishin
a65bed8293
OTP 21 and 22 compatibility
2019-12-29 20:10:10 +03:00
Michael Klishin
ad7f453e44
Migrate away from http_uri for warning-free OTP 23 compatibility
...
Note: uri_string is only available starting with OTP 21.
2019-12-29 19:03:52 +03:00
David Goehrig
d611778707
Adding handling for empty objects
2019-08-06 09:06:23 +02:00
Michael Klishin
720ba1b463
Compute API endpoint TLD from configured region
...
Closes #23 .
[#155865527 ]
2018-03-10 02:58:18 +03:00
Jean-Sébastien Pédron
9d7bb11cfa
rabbitmq_aws_json: Revert to the old proplist-based API
...
... instead of using maps.
The problem was that rabbitmq_aws_xml was producing lists too. And
callers still expect lists. So it's easier to only fix the call to
rabbit_json:decode() and convert the result to the previous list format.
[#151251475 ]
2017-09-26 11:24:58 +02:00
Jean-Sébastien Pédron
d3a6bf6cca
rabbitmq_aws_config_tests: Replace erlang:now() by erlang:timestamp()
...
[#151251475 ]
2017-09-26 11:24:09 +02:00
Jean-Sébastien Pédron
d95af8e84a
rabbitmq_aws_sign: Remove support for integers in header's value
...
The code doesn't produce them, so no need to support and test this case.
[#151251475 ]
2017-09-26 11:21:25 +02:00
Jean-Sébastien Pédron
5ace16ebf8
Switch to rabbit_json:decode()
...
... instead of rabbit_misc:json_decode() which doesn't exist anymore for
several months.
The new function returns a map instead of a proplist. Several modules in
the application and the testsuite are updated to handle those maps.
The testsuite passes again. However, other places may require some
changes to expect maps.
2017-09-20 19:38:36 +02:00
Gavin M. Roy
760abacaa4
Dont rely on edoc_lib
2016-05-23 23:55:20 -04:00
Gavin M. Roy
1f6f6e9bf7
Fix query arg encoding
2016-05-23 21:17:00 -04:00
Gavin M. Roy
71e52fb874
Dont crash on startup when region cant be loaded
2016-05-19 20:35:09 -04:00
Gavin M. Roy
388eae36b6
Get the build/test working
2016-05-19 19:40:33 -04:00
Gavin M. Roy
08d1f6a5a9
WIP first change after renaming all the things
2016-05-19 17:04:53 -04:00
Gavin M. Roy
ccffab5051
Increase coverage to include handle_call/3
2016-05-19 15:51:37 -04:00
Gavin M. Roy
ccca6f901d
Implement the full request logic
2016-05-19 15:34:03 -04:00
Gavin M. Roy
a75d224306
Return the parsed expiration timestamp
2016-05-19 15:32:05 -04:00
Gavin M. Roy
ea13561798
Increate httpc_aws test coverage
2016-05-17 16:48:43 -04:00
Gavin M. Roy
eac8113cfa
Correctly handle single node XML as well
2016-05-17 16:27:25 -04:00
Gavin M. Roy
723bcdcb75
Increase JSON conversation coverage
2016-05-17 14:39:43 -04:00
Gavin M. Roy
9708fb23c8
Increase test coverage
2016-05-17 14:36:33 -04:00
Gavin M. Roy
b438963efc
Increase test coverage and documentation of httpc_aws
2016-05-17 14:25:11 -04:00
Gavin M. Roy
f0d64cb8e5
Move tests from binary() strings to string()s
2016-05-17 14:11:26 -04:00
Gavin M. Roy
0604eec73b
Break out JSON parsing
2016-05-17 14:09:48 -04:00
Gavin M. Roy
5b5522b617
Fix XML parser for nested docs
2016-05-17 01:52:50 -04:00
Gavin M. Roy
0c46d74550
Start httpc_aws tests
2016-05-17 00:10:22 -04:00
Gavin M. Roy
5fe5179e38
Reflect the change in typing/records
2016-05-17 00:08:12 -04:00
Gavin M. Roy
40bb9c97af
Trivial test updates
2016-05-17 00:07:14 -04:00
Gavin M. Roy
e67fbb5639
Change headers to be all lowercase
...
And fix the header merging behavior
2016-05-16 22:19:18 -04:00
Gavin M. Roy
d132e485fe
Fix the doc for httpc_aws_xml
2016-05-16 01:02:21 -04:00
Gavin M. Roy
16ea14fff1
Add a simple XML parser
...
Looks like some AWS APIs dont speak JSON. \o/
2016-05-16 01:00:39 -04:00
Gavin M. Roy
9406947a42
Fix signing header sorting to be case insensitive
2016-05-15 23:17:46 -04:00
Gavin M. Roy
5ca7ecf2cf
Move to calendar:local_time_to_universal_time_dst/1
2016-05-15 20:56:40 -04:00
Gavin M. Roy
bb3285709b
Remove the initial tests for now
...
Will re-add when API stabilizes
2016-05-15 19:52:43 -04:00
Gavin M. Roy
5522a3ef5c
AWS Request Signing module
...
Builds headers the signed request
2016-05-15 19:51:45 -04:00
Gavin M. Roy
8859630c72
Add build_query_string/1 method
2016-05-15 19:50:48 -04:00
Gavin M. Roy
27ae3a16b5
Refactor the urilib tests to match the rest of the project
2016-04-15 12:01:00 -04:00