Skip to content

DataReply/makeathon_exmaples

Repository files navigation

makeathon_exmaples

AWS examples for a makeathon

S3 Access

Checkout the S3_Example.ipynb notebook

Bedrock Access

Checkout the Bedrock_Example.ipynb notebook

Local Examples

Make sure you never store access keys in a public location!

Prerequisites

Create a virtual python environment

  1. Create a virtual python environment python3 -m venv .venv
  2. Activate the virtual environment source .venv/bin/activate
  3. Install the required libraries pip install -r requirements.txt

Source: https://docs.python.org/3/library/venv.html

Create AWS Access key

  1. Create an AWS Access key Link
  2. Create a copy of the .env.example file and name it .env
  3. Store the Key ID and the Key Secret in the .env file

Bedrock Local

  1. Make sure the environment is activated source .venv/bin/activate
  2. 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.

S3 Local

  1. Make sure the environment is activated source .venv/bin/activate
  2. Change the group name in the file s3_local.py to a valid group name
  3. 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 

About

AWS examples for a makeathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published