Skip to content

Commit e962820

Browse files
Bump actions/setup-node from 6.0.0 to 6.1.0 in the actions group (#145)
* Add the Strands example * Bump actions/setup-node from 6.0.0 to 6.1.0 in the actions group Bumps the actions group with 1 update: [actions/setup-node](https://github.com/actions/setup-node). Updates `actions/setup-node` from 6.0.0 to 6.1.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@2028fbc...395ad32) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com> * Add the Strands example --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Kenji Saito <ken-yo@mbr.nifty.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kenji Saito <1867845+poad@users.noreply.github.com>
1 parent bfb9ca1 commit e962820

22 files changed

Lines changed: 1689 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1818

1919
- name: Use Node.js
20-
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
20+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
2121
with:
2222
node-version: 'lts/*'
2323
check-latest: true

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3838

3939
- name: Use Node.js
40-
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
40+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
4141
with:
4242
node-version: 'lts/*'
4343
check-latest: true
@@ -95,7 +95,7 @@ jobs:
9595
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
9696

9797
- name: Use Node.js
98-
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
98+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
9999
with:
100100
node-version: 'lts/*'
101101
check-latest: true

agents/agent-strands/bin/cdk.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

agents/agent-strands/bin/cdk.js

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"version": "48.0.0",
3+
"files": {
4+
"60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321": {
5+
"displayName": "Lambda/Code",
6+
"source": {
7+
"path": "asset.60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321",
8+
"packaging": "zip"
9+
},
10+
"destinations": {
11+
"current_account-current_region-956ec07c": {
12+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
13+
"objectKey": "60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321.zip",
14+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
15+
}
16+
}
17+
},
18+
"3f8dbdc3ac62bea8df0a326a27741714ed2c72c72c4f444c3c879792383f5078": {
19+
"displayName": "agent-strands-lambda-example Template",
20+
"source": {
21+
"path": "agent-strands-lambda-example.template.json",
22+
"packaging": "file"
23+
},
24+
"destinations": {
25+
"current_account-current_region-e082d771": {
26+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
27+
"objectKey": "3f8dbdc3ac62bea8df0a326a27741714ed2c72c72c4f444c3c879792383f5078.json",
28+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
29+
}
30+
}
31+
}
32+
},
33+
"dockerImages": {}
34+
}
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
{
2+
"Resources": {
3+
"ApolloLambdaFunctionLogGroup34540FC6": {
4+
"Type": "AWS::Logs::LogGroup",
5+
"Properties": {
6+
"LogGroupName": "/aws/lambda/agent-strands-lambda-example",
7+
"RetentionInDays": 1
8+
},
9+
"UpdateReplacePolicy": "Delete",
10+
"DeletionPolicy": "Delete"
11+
},
12+
"ApolloLambdaFunctionExecutionRole85D9D1FB": {
13+
"Type": "AWS::IAM::Role",
14+
"Properties": {
15+
"AssumeRolePolicyDocument": {
16+
"Statement": [
17+
{
18+
"Action": "sts:AssumeRole",
19+
"Effect": "Allow",
20+
"Principal": {
21+
"Service": "lambda.amazonaws.com"
22+
}
23+
}
24+
],
25+
"Version": "2012-10-17"
26+
},
27+
"ManagedPolicyArns": [
28+
{
29+
"Fn::Join": [
30+
"",
31+
[
32+
"arn:",
33+
{
34+
"Ref": "AWS::Partition"
35+
},
36+
":iam::aws:policy/AWSLambdaExecute"
37+
]
38+
]
39+
},
40+
{
41+
"Fn::Join": [
42+
"",
43+
[
44+
"arn:",
45+
{
46+
"Ref": "AWS::Partition"
47+
},
48+
":iam::aws:policy/CloudFrontReadOnlyAccess"
49+
]
50+
]
51+
}
52+
],
53+
"Policies": [
54+
{
55+
"PolicyDocument": {
56+
"Statement": [
57+
{
58+
"Action": [
59+
"bedrock:InvokeModel*",
60+
"logs:PutLogEvents"
61+
],
62+
"Effect": "Allow",
63+
"Resource": "*"
64+
}
65+
],
66+
"Version": "2012-10-17"
67+
},
68+
"PolicyName": "bedrock-policy"
69+
}
70+
]
71+
}
72+
},
73+
"LambdaD247545B": {
74+
"Type": "AWS::Lambda::Function",
75+
"Properties": {
76+
"Architectures": [
77+
"arm64"
78+
],
79+
"Code": {
80+
"S3Bucket": {
81+
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
82+
},
83+
"S3Key": "60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321.zip"
84+
},
85+
"FunctionName": "agent-strands-lambda-example",
86+
"Handler": "index.handler",
87+
"LoggingConfig": {
88+
"ApplicationLogLevel": "TRACE",
89+
"LogFormat": "JSON"
90+
},
91+
"MemorySize": 256,
92+
"Role": {
93+
"Fn::GetAtt": [
94+
"ApolloLambdaFunctionExecutionRole85D9D1FB",
95+
"Arn"
96+
]
97+
},
98+
"Runtime": "nodejs24.x",
99+
"Timeout": 60
100+
},
101+
"DependsOn": [
102+
"ApolloLambdaFunctionExecutionRole85D9D1FB"
103+
],
104+
"Metadata": {
105+
"aws:asset:path": "asset.60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321",
106+
"aws:asset:is-bundled": true,
107+
"aws:asset:property": "Code"
108+
}
109+
},
110+
"LambdaEventInvokeConfig9A47C8EE": {
111+
"Type": "AWS::Lambda::EventInvokeConfig",
112+
"Properties": {
113+
"FunctionName": {
114+
"Ref": "LambdaD247545B"
115+
},
116+
"MaximumRetryAttempts": 0,
117+
"Qualifier": "$LATEST"
118+
}
119+
},
120+
"LambdainvokefunctionurlECBD6AC0": {
121+
"Type": "AWS::Lambda::Permission",
122+
"Properties": {
123+
"Action": "lambda:InvokeFunctionUrl",
124+
"FunctionName": {
125+
"Fn::GetAtt": [
126+
"LambdaD247545B",
127+
"Arn"
128+
]
129+
},
130+
"FunctionUrlAuthType": "NONE",
131+
"Principal": "*"
132+
}
133+
},
134+
"LambdainvokefunctionCF40E9E5": {
135+
"Type": "AWS::Lambda::Permission",
136+
"Properties": {
137+
"Action": "lambda:InvokeFunction",
138+
"FunctionName": {
139+
"Fn::GetAtt": [
140+
"LambdaD247545B",
141+
"Arn"
142+
]
143+
},
144+
"InvokedViaFunctionUrl": true,
145+
"Principal": "*"
146+
}
147+
},
148+
"LambdaFunctionUrl62966E86": {
149+
"Type": "AWS::Lambda::Url",
150+
"Properties": {
151+
"AuthType": "NONE",
152+
"InvokeMode": "RESPONSE_STREAM",
153+
"TargetFunctionArn": {
154+
"Fn::GetAtt": [
155+
"LambdaD247545B",
156+
"Arn"
157+
]
158+
}
159+
}
160+
}
161+
},
162+
"Parameters": {
163+
"BootstrapVersion": {
164+
"Type": "AWS::SSM::Parameter::Value<String>",
165+
"Default": "/cdk-bootstrap/hnb659fds/version",
166+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
167+
}
168+
},
169+
"Rules": {
170+
"CheckBootstrapVersion": {
171+
"Assertions": [
172+
{
173+
"Assert": {
174+
"Fn::Not": [
175+
{
176+
"Fn::Contains": [
177+
[
178+
"1",
179+
"2",
180+
"3",
181+
"4",
182+
"5"
183+
],
184+
{
185+
"Ref": "BootstrapVersion"
186+
}
187+
]
188+
}
189+
]
190+
},
191+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
192+
}
193+
]
194+
}
195+
}
196+
}

agents/agent-strands/cdk.out/asset.45d1724bd92ced9b013372e2515c63cb4bef12b5bc2c51651008462827d96d45/index.mjs

Lines changed: 238 additions & 0 deletions
Large diffs are not rendered by default.

agents/agent-strands/cdk.out/asset.60c83558490202f3ff95469351bd6d14d4a0546afc96a8b8bb0bac2acb3ce321/index.mjs

Lines changed: 238 additions & 0 deletions
Large diffs are not rendered by default.

agents/agent-strands/cdk.out/asset.716071e6193d8d65285fec67182520a245dc4d4cf966b8c5765ff14412b10546/index.mjs

Lines changed: 238 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":"48.0.0"}

0 commit comments

Comments
 (0)