-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Bedrock Agent with KB and Action Groups in first working version
- Loading branch information
1 parent
1d5ffa1
commit 7d5e9c9
Showing
3 changed files
with
135 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# DEMO SCRIPT TO LOAD SAMPLE DATA TO DYNAMODB | ||
import boto3 | ||
|
||
items = [ | ||
{ | ||
"PK": "USER#[email protected]", | ||
"SK": "DATE#2024-12-01", | ||
"events": [ | ||
"7:00am - 8:00am: December payment fees", | ||
"8:00am - 5:00pm: Work hard in Santi's job (AWS cool stuff)", | ||
"5:00pm - 6:00pm: Study Gen-AI latest topics", | ||
"6:00pm - 10:00pm: Family time", | ||
], | ||
}, | ||
{ | ||
"PK": "USER#[email protected]", | ||
"SK": "DATE#2024-12-02", | ||
"events": [ | ||
"6:00am - 7:00am: Spinning Smartfit", | ||
"7:00am - 8:00am: Breakfast Banana with Milk", | ||
"8:00am - 5:00pm: Work hard in Santi's job (AWS cool stuff)", | ||
"5:00pm - 6:00pm: Study Architecture patterns", | ||
"6:00pm - 10:00pm: Family time", | ||
], | ||
}, | ||
{ | ||
"PK": "USER#[email protected]", | ||
"SK": "DATE#2024-12-03", | ||
"events": [ | ||
"6:00am - 7:00am: Stair Stepper Smartfit", | ||
"7:00am - 8:00am: Breakfast with Colombian Coffee", | ||
"8:00am - 5:00pm: Work hard in Santi's job (AWS cool stuff)", | ||
"5:00pm - 6:00pm: Study AWS latest Blogs", | ||
"6:00pm - 10:00pm: Family time", | ||
], | ||
}, | ||
{ | ||
"PK": "USER#[email protected]", | ||
"SK": "DATE#2024-12-04", | ||
"events": [ | ||
"6:00am - 7:00am: Running", | ||
"7:00am - 8:00am: Breakfast with Fruits", | ||
"8:00am - 5:00pm: Work hard in Santi's job (AWS cool stuff)", | ||
"5:00pm - 6:00pm: Study Design Patterns", | ||
"6:00pm - 10:00pm: Family time", | ||
], | ||
}, | ||
{ | ||
"PK": "USER#[email protected]", | ||
"SK": "DATE#2024-12-05", | ||
"events": [ | ||
"6:00am - 7:00am: Stair Stepper Smartfit", | ||
"7:00am - 8:00am: Breakfast with Colombian Coffee", | ||
"8:00am - 5:00pm: Work hard in Santi's job (AWS cool stuff)", | ||
"5:00pm - 6:00pm: Study Infrastructure as Code", | ||
"6:00pm - 10:00pm: Family time", | ||
], | ||
}, | ||
] | ||
|
||
# Load data to DynamoDB | ||
dynamodb = boto3.resource("dynamodb") | ||
table = dynamodb.Table("aws-whatsapp-calendar-prod") | ||
|
||
for item in items: | ||
table.put_item(Item=item) |