Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

How to use the script

Install Python 3.9

brew install pyenv - For macOS (with Homebrew):

pyenv install 3.9.6

pyenv global 3.9.6

% python --version

Python 3.9.6

Install dependencies

pip install -r requirements.txt

Set environment variables

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'

Run script.py

Python script.py

Example Output(A signed URL expires in 5mins)

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

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages