Commit Graph

21 Commits

Author SHA1 Message Date
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