AWS examples for a makeathon
Checkout the S3_Example.ipynb notebook
Checkout the Bedrock_Example.ipynb notebook
Make sure you never store access keys in a public location!
- Create a virtual python environment
python3 -m venv .venv
- Activate the virtual environment
source .venv/bin/activate
- Install the required libraries
pip install -r requirements.txt
Source: https://docs.python.org/3/library/venv.html
- Create an AWS Access key Link
- Create a copy of the
.env.example
file and name it.env
- Store the
Key ID
and theKey Secret
in the.env
file
- Make sure the environment is activated
source .venv/bin/activate
- Execute
python bedrock_local.py
The output should look like this:
(.venv) user@host$ python bedrock_local.py
>>> Model Response: A 'hello world' program demonstrates the basic syntax of a programming language by outputting a simple greeting.
- Make sure the environment is activated
source .venv/bin/activate
- Change the group name in the file
s3_local.py
to a valid group name - Execute
python s3_local.py
The output should look like this:
(.venv) user@host$ python s3_local.py
Downloaded 's3://tumai.makeathon2025/GroupXX/welcome.md' and stored file in 'downloaded_welcome.md'
(.venv) user@host$ ls
downloaded_welcome.md