You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deps/rabbitmq_aws/README.md
+29-30Lines changed: 29 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ A fork of [gmr/httpc-aws](https://github.com/gmr/httpc-aws) for use in building
5
5
## Supported Erlang Versions
6
6
7
7
[Same as RabbitMQ](http://www.rabbitmq.com/which-erlang.html)
8
-
8
+
9
9
## Configuration
10
10
11
11
Configuration for *rabbitmq-aws* is can be provided in multiple ways. It is designed
12
12
to behave similarly to the [AWS Command Line Interface](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html)
13
13
with respect to providing region and configuration information. Additionally it
14
-
has two methods, ``rabbitmq_aws:set_region/1`` and ``rabbitmq_aws:set_credentials/2``
14
+
has two methods, `rabbitmq_aws:set_region/1` and `rabbitmq_aws:set_credentials/2`
15
15
to allow for application specific configuration, bypassing the automatic configuration
16
16
behavior.
17
17
@@ -40,36 +40,36 @@ and [adds defenses against additional vulnerabilities](https://aws.amazon.com/bl
40
40
AWS recommends adopting IMDSv2 and disabling IMDSv1 [by configuring the Instance Metadata Service on the EC2 instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html).
41
41
42
42
By default *rabbitmq-aws* will attempt to use IMDSv2 first and will fallback to use IMDSv1 if calls to IMDSv2 fail. This behavior can be overridden
43
-
by setting the ``aws.prefer_imdsv2`` setting to ``false``.
43
+
by setting the `aws.prefer_imdsv2` setting to `false`.
44
44
45
45
### Environment Variables
46
46
47
-
As with the AWS CLI, the following environment variables can be used to provide
47
+
As with the AWS CLI, the following environment variables can be used to provide
48
48
configuration or to impact configuration behavior:
``rabbitmq_aws:set_region/1`` | Manually specify the AWS region to make requests to.
62
-
``rabbitmq_aws:set_credentials/2`` | Manually specify the request credentials to use.
63
-
``rabbitmq_aws:refresh_credentials/0`` | Refresh the credentials from the environment, filesystem, or EC2 Instance Metadata Service.
64
-
``rabbitmq_aws:ensure_imdsv2_token_valid/0`` | Make sure EC2 IMDSv2 token is active and valid.
65
-
``rabbitmq_aws:api_get_request/2`` | Perform an AWS service API request.
66
-
``rabbitmq_aws:get/2`` | Perform a GET request to the API specifying the serviceand request path.
67
-
``rabbitmq_aws:get/3`` | Perform a GET request specifying the service, path, and headers.
68
-
``rabbitmq_aws:post/4`` | Perform a POST request specifying the service, path, headers, and body.
69
-
``rabbitmq_aws:request/5`` | Perform a request specifying the service, method, path, headers, and body.
70
-
``rabbitmq_aws:request/6`` | Perform a request specifying the service, method, path, headers, body, and ``httpc:http_options().``
71
-
``rabbitmq_aws:request/7``| Perform a request specifying the service, method, path, headers, body, ``httpc:http_options()``, and override the API endpoint.
`rabbitmq_aws:set_region/1` | Manually specify the AWS region to make requests to.
62
+
`rabbitmq_aws:set_credentials/2` | Manually specify the request credentials to use.
63
+
`rabbitmq_aws:refresh_credentials/0` | Refresh the credentials from the environment, filesystem, or EC2 Instance Metadata Service.
64
+
`rabbitmq_aws:ensure_imdsv2_token_valid/0` | Make sure EC2 IMDSv2 token is active and valid.
65
+
`rabbitmq_aws:get/2`| Perform a GET request to the API specifying the service and request path.
66
+
`rabbitmq_aws:get/3`| Perform a GET request specifying the service, path, and headers.
67
+
`rabbitmq_aws:post/4`| Perform a POST request specifying the service, path, headers, and body.
68
+
`rabbitmq_aws:request/5`| Perform a request specifying the service, method, path, headers, and body.
69
+
`rabbitmq_aws:request/6`| Perform a request specifying the service, method, path, headers, body, and `httpc:http_options().`
70
+
`rabbitmq_aws:request/7`| Perform a request specifying the service, method, path, headers, body, `httpc:http_options()`, and override the API endpoint.
71
+
`rabbitmq_aws:api_get_request/2` | Perform an AWS service API request with retries.
72
+
`rabbitmq_aws:api_post_request/2` | Perform an AWS service API request with retries.
73
73
74
74
## Example Usage
75
75
@@ -80,8 +80,7 @@ you're using the EC2 Instance Metadata Service for credentials:
0 commit comments