Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Use Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 'lts/*'
check-latest: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Use Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 'lts/*'
check-latest: true
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Use Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 'lts/*'
check-latest: true
Expand Down
2 changes: 2 additions & 0 deletions agents/agent-strands/bin/cdk.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
export {};
12 changes: 12 additions & 0 deletions agents/agent-strands/bin/cdk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"version": "48.0.0",
"files": {
"60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321": {
"displayName": "Lambda/Code",
"source": {
"path": "asset.60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321",
"packaging": "zip"
},
"destinations": {
"current_account-current_region-956ec07c": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321.zip",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
},
"3f8dbdc3ac62bea8df0a326a27741714ed2c72c72c4f444c3c879792383f5078": {
"displayName": "agent-strands-lambda-example Template",
"source": {
"path": "agent-strands-lambda-example.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region-e082d771": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "3f8dbdc3ac62bea8df0a326a27741714ed2c72c72c4f444c3c879792383f5078.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
}
},
"dockerImages": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
{
"Resources": {
"ApolloLambdaFunctionLogGroup34540FC6": {
"Type": "AWS::Logs::LogGroup",
"Properties": {
"LogGroupName": "/aws/lambda/agent-strands-lambda-example",
"RetentionInDays": 1
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"ApolloLambdaFunctionExecutionRole85D9D1FB": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
}
}
],
"Version": "2012-10-17"
},
"ManagedPolicyArns": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":iam::aws:policy/AWSLambdaExecute"
]
]
},
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":iam::aws:policy/CloudFrontReadOnlyAccess"
]
]
}
],
"Policies": [
{
"PolicyDocument": {
"Statement": [
{
"Action": [
"bedrock:InvokeModel*",
"logs:PutLogEvents"
],
"Effect": "Allow",
"Resource": "*"
}
],
"Version": "2012-10-17"
},
"PolicyName": "bedrock-policy"
}
]
}
},
"LambdaD247545B": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Architectures": [
"arm64"
],
"Code": {
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321.zip"
},
"FunctionName": "agent-strands-lambda-example",
"Handler": "index.handler",
"LoggingConfig": {
"ApplicationLogLevel": "TRACE",
"LogFormat": "JSON"
},
"MemorySize": 256,
"Role": {
"Fn::GetAtt": [
"ApolloLambdaFunctionExecutionRole85D9D1FB",
"Arn"
]
},
"Runtime": "nodejs24.x",
"Timeout": 60
},
"DependsOn": [
"ApolloLambdaFunctionExecutionRole85D9D1FB"
],
"Metadata": {
"aws:asset:path": "asset.60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321",
"aws:asset:is-bundled": true,
"aws:asset:property": "Code"
}
},
"LambdaEventInvokeConfig9A47C8EE": {
"Type": "AWS::Lambda::EventInvokeConfig",
"Properties": {
"FunctionName": {
"Ref": "LambdaD247545B"
},
"MaximumRetryAttempts": 0,
"Qualifier": "$LATEST"
}
},
"LambdainvokefunctionurlECBD6AC0": {
"Type": "AWS::Lambda::Permission",
"Properties": {
"Action": "lambda:InvokeFunctionUrl",
"FunctionName": {
"Fn::GetAtt": [
"LambdaD247545B",
"Arn"
]
},
"FunctionUrlAuthType": "NONE",
"Principal": "*"
}
},
"LambdainvokefunctionCF40E9E5": {
"Type": "AWS::Lambda::Permission",
"Properties": {
"Action": "lambda:InvokeFunction",
"FunctionName": {
"Fn::GetAtt": [
"LambdaD247545B",
"Arn"
]
},
"InvokedViaFunctionUrl": true,
"Principal": "*"
}
},
"LambdaFunctionUrl62966E86": {
"Type": "AWS::Lambda::Url",
"Properties": {
"AuthType": "NONE",
"InvokeMode": "RESPONSE_STREAM",
"TargetFunctionArn": {
"Fn::GetAtt": [
"LambdaD247545B",
"Arn"
]
}
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions agents/agent-strands/cdk.out/cdk.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"48.0.0"}
Loading