brew install pyenv
- For macOS (with Homebrew):
pyenv install 3.9.6
pyenv global 3.9.6
% python --version
Python 3.9.6
pip install -r requirements.txt
export AWS_ACCESS_KEY_ID=<access_key>
export AWS_SECRET_ACCESS_KEY=<secret_key>
[Optional]export AWS_SESSON_TOKEN=<session_token>
// This is only for temporary credential
export REGION=<region_of_neo_app>
// e.g us-west-2
export DASHBOARDS_ENDPOINT='<Neo_dashboards_url>'
// Note: Remove https://
. e.g 'dashboards-cgliugamedayidc0904-f46qvyl4u4b0c6cb3c3a.us-west-2.opensearch-beta.amazonaws.com'
Python script.py
Signed URL:
https://dashboards-cgliugamedayidc0904-f46qvyl4u4b0c6cb3c3a.us-west-2.opensearch-beta.amazonaws.com/_login/?X-Amz-Date=20240906T072049Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA5MIG5PUPCAWJQNGB%2F20240906%2Fus-west-2%2Fopensearch%2Faws4_request&X-Amz-SignedHeaders=host%3Bx-amz-date&X-Amz-Signature=310d1023672452a07f60349b9b035ed84c2fb8afc69f3e4de051c56898f18a2f