Commit Graph

26 Commits

Author SHA1 Message Date
Michael Klishin 968eefa1bb
Bump (c) line year
There are no functional changes to this massive diff.
2025-01-01 17:54:10 -05:00
Michael Klishin d83ae8c9c7
More missed (c) header updates 2024-01-23 11:26:29 -05:00
Alexey Lebedeff 50ed7ad6f7 Fix all dialyzer warnings in AWS-related plugins 2023-01-20 15:20:26 +01: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 5fe7abad88
address review feedback 2021-04-08 12:28:59 +03:00
Thuan Duong Ba 28f41b1958
address review feedback 2021-04-08 12:28:58 +03:00
Thuan Duong Ba 9634f8205a
address review feedback 2021-04-08 12:28:58 +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
Jean-Sébastien Pédron 3d73a97764 Update copyright (year 2020) 2020-03-10 16:07:18 +01: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 2b12600aa9 Merge branch 'master' into rabbitmq-peer-discovery-aws-25 2019-05-13 20:17:10 +03:00
Daniil Fedotov fba7d8116f Rename some types to make it build on 21.3.
ssl_api.hrl does not contain types starting from 21.3.
Use non-existent types instead. This will dyalize, but there is no type
I know of, to fit both old and new types.
2019-03-18 18:29:08 -04:00
Luke Bakken e215ede874 Set connect and request timeouts
httpc:request has a default timeout of infinity. This PR ensures that both the connect and request phase uses a timeout

Part of rabbitmq/rabbitmq-peer-discovery-aws#25
2019-01-11 12:31:07 -08:00
Michael Klishin d5463be5e6 Bump EC2 API endpoint request timeout to 10s
100ms is unreasonably low.

Reported in [1]. Per discussion with @lukebakken.

1. https://groups.google.com/d/msg/rabbitmq-users/FyzJpxADz1s/h3U8r2BEBwAJ
2018-10-25 22:50:04 +03:00
Jean-Sébastien Pédron 770234e690 Fix all -spec()
[#151251475]
2017-09-26 11:18:56 +02:00
Alexey Lebedeff 44195b7264 Fix some type specs
I've touched only those types as I'm trying to make dialyzer completely happy
with `rabbitmq_autocluster`.
2016-07-29 19:29:08 +03: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 08d1f6a5a9 WIP first change after renaming all the things 2016-05-19 17:04:53 -04:00
Gavin M. Roy 8d646f0e88 Add another error response format 2016-05-19 15:31:45 -04:00
Gavin M. Roy 8977375f52 Update the hrl, streamline, add more typing 2016-05-17 00:07:46 -04:00
Gavin M. Roy 52e15f6f97 Move security_credentials() to the include 2016-05-15 23:19:44 -04:00
Gavin M. Roy 4324abb33b Add v4request record/type 2016-05-15 19:51:01 -04:00
Gavin M. Roy 83935d46f5 Refactor to consistently use the #uri{} record 2016-04-12 00:09:00 -04:00
Gavin M. Roy 2231ad85c9 Implement specs for each function, additional cleanup 2016-04-11 22:21:35 -04:00
Gavin M. Roy a0692a2086 Cleanup and refactoring
- Strip down httpc_aws_urllib
- WIP cleanup of doc strings and specs
- Add some types to the include
- Start to model out the static API that invokes gen_server
- Clean up all dialyzer warnings
- Update tests to reflect changes
2016-04-08 01:45:34 -04:00
Gavin M. Roy ada51d69b6 Setup the OTP side of the API
- To remove the need to send configuration data for each request, setup a gen_server structure for keeping configuration state.
- Move constants and record info into a hrl file to recode per-file definition overhead.
- Update file headers to be consistent
2016-04-07 20:59:52 -04:00