Send HTTP requests signed with SigV4 to Amazon OpenSearch Service 🔏
```shell ➜ aoss-curl -h Send HTTP requests signed with SigV4 to Amazon OpenSearch Service 🔏
Usage: aoss-curl [OPTIONS] --code --uri
Arguments:
Options:
-r, --region MFA code
-d, --duration
aoss-curl is published on crates.io and can be installed with
shell
cargo install aoss-curl
or downloaded as binary from the releases page.
Warning: aoss-curl requires an MFA code and uses aws-mfa for authenticating to AWS.
Add basic credentials in ~/.aws/credentials
:
text
[<profile_name>-noauth]
aws_access_key_id = <aws_access_key_id>
aws_secret_access_key = <aws_secret_access_key>
Note: make sure to add the
-noauth
suffix to the profile name
Run aoss-curl
:
shell
aoss-curl -p <profile_name> -c <mfa_code> -u <opensearch_domain>/_cat/indices
Wait for output:
shell
200 OK
...
Check generated credentials in ~/.aws/credentials
:
text
[<profile_name>]
aws_access_key_id = <aws_access_key_id>
aws_secret_access_key = <aws_secret_access_key>
aws_session_token = <aws_session_token>