@aws/nx-plugin 0.60.2 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/LICENSE-THIRD-PARTY +678 -2016
  2. package/package.json +11 -11
  3. package/src/infra/app/__snapshots__/generator.spec.ts.snap +27 -33
  4. package/src/preset/__snapshots__/generator.spec.ts.snap +2 -2
  5. package/src/py/fast-api/__snapshots__/generator.spec.ts.snap +13 -11
  6. package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +88 -418
  7. package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +88 -414
  8. package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +14 -12
  9. package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +13 -11
  10. package/src/ts/lib/__snapshots__/generator.spec.ts.snap +4 -4
  11. package/src/ts/lib/eslint.js +1 -1
  12. package/src/ts/lib/eslint.js.map +1 -1
  13. package/src/ts/lib/generator.js +13 -1
  14. package/src/ts/lib/generator.js.map +1 -1
  15. package/src/ts/lib/vitest.js +3 -3
  16. package/src/ts/lib/vitest.js.map +1 -1
  17. package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +86 -416
  18. package/src/ts/nx-plugin/__snapshots__/generator.spec.ts.snap +1 -1
  19. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +112 -94
  20. package/src/ts/react-website/app/files/app/src/components/AppLayout/index.tsx.template +5 -2
  21. package/src/ts/react-website/app/generator.js +1 -1
  22. package/src/ts/react-website/app/generator.js.map +1 -1
  23. package/src/utils/agent-core-constructs/agent-core-constructs.js +3 -4
  24. package/src/utils/agent-core-constructs/agent-core-constructs.js.map +1 -1
  25. package/src/utils/agent-core-constructs/files/cdk/app/agent-core/__nameKebabCase__/__nameKebabCase__.ts.template +23 -19
  26. package/src/utils/agent-core-constructs/files/terraform/app/agent-core/__nameKebabCase__/__nameKebabCase__.tf.template +5 -3
  27. package/src/utils/agent-core-constructs/files/terraform/core/agent-core/runtime.tf.template +53 -222
  28. package/src/utils/api-constructs/files/cdk/app/apis/rest/__apiNameKebabCase__.ts.template +13 -16
  29. package/src/utils/versions.d.ts +52 -51
  30. package/src/utils/versions.js +51 -50
  31. package/src/utils/versions.js.map +1 -1
  32. package/src/utils/agent-core-constructs/files/cdk/core/agent-core/runtime.ts.template +0 -159
@@ -6,69 +6,70 @@
6
6
  * Versons for TypeScript dependencies added by generators
7
7
  */
8
8
  export declare const TS_VERSIONS: {
9
- readonly '@aws-sdk/client-cognito-identity': "3.922.0";
10
- readonly '@aws-sdk/client-dynamodb': "3.922.0";
11
- readonly '@aws-sdk/credential-providers': "3.922.0";
12
- readonly '@aws-sdk/credential-provider-cognito-identity': "3.922.0";
9
+ readonly '@aws-sdk/client-cognito-identity': "3.940.0";
10
+ readonly '@aws-sdk/client-dynamodb': "3.940.0";
11
+ readonly '@aws-sdk/credential-providers': "3.940.0";
12
+ readonly '@aws-sdk/credential-provider-cognito-identity': "3.940.0";
13
13
  readonly '@aws-smithy/server-apigateway': "1.0.0-alpha.10";
14
14
  readonly '@aws-smithy/server-node': "1.0.0-alpha.10";
15
- readonly '@aws-lambda-powertools/logger': "2.28.1";
16
- readonly '@aws-lambda-powertools/metrics': "2.28.1";
17
- readonly '@aws-lambda-powertools/tracer': "2.28.1";
18
- readonly '@aws-lambda-powertools/parser': "2.28.1";
15
+ readonly '@aws-lambda-powertools/logger': "2.29.0";
16
+ readonly '@aws-lambda-powertools/metrics': "2.29.0";
17
+ readonly '@aws-lambda-powertools/tracer': "2.29.0";
18
+ readonly '@aws-lambda-powertools/parser': "2.29.0";
19
19
  readonly '@middy/core': "6.4.5";
20
20
  readonly '@nxlv/python': "21.2.0";
21
21
  readonly '@nx-extend/terraform': "9.0.1";
22
- readonly '@nx/devkit': "22.0.2";
23
- readonly '@nx/react': "22.0.2";
24
- readonly 'create-nx-workspace': "22.0.2";
22
+ readonly '@nx/devkit': "22.1.3";
23
+ readonly '@nx/react': "22.1.3";
24
+ readonly 'create-nx-workspace': "22.1.3";
25
25
  readonly '@modelcontextprotocol/sdk': "1.21.0";
26
26
  readonly '@modelcontextprotocol/inspector': "0.17.2";
27
- readonly '@tanstack/react-router': "1.134.12";
28
- readonly '@tanstack/router-plugin': "1.134.12";
29
- readonly '@tanstack/router-generator': "1.134.12";
30
- readonly '@tanstack/virtual-file-routes': "1.133.19";
31
- readonly '@tanstack/router-utils': "1.133.19";
32
- readonly '@cloudscape-design/board-components': "3.0.126";
33
- readonly '@cloudscape-design/components': "3.0.1124";
34
- readonly '@cloudscape-design/global-styles': "1.0.47";
35
- readonly '@tanstack/react-query': "5.90.6";
36
- readonly '@tanstack/react-query-devtools': "5.90.2";
37
- readonly '@trpc/tanstack-react-query': "11.7.1";
38
- readonly '@trpc/client': "11.7.1";
39
- readonly '@trpc/server': "11.7.1";
40
- readonly '@types/node': "22.19.0";
41
- readonly '@types/aws-lambda': "8.10.158";
27
+ readonly '@tanstack/react-router': "1.139.6";
28
+ readonly '@tanstack/router-plugin': "1.139.6";
29
+ readonly '@tanstack/router-generator': "1.139.6";
30
+ readonly '@tanstack/virtual-file-routes': "1.139.0";
31
+ readonly '@tanstack/router-utils': "1.139.0";
32
+ readonly '@cloudscape-design/board-components': "3.0.130";
33
+ readonly '@cloudscape-design/components': "3.0.1143";
34
+ readonly '@cloudscape-design/global-styles': "1.0.49";
35
+ readonly '@tanstack/react-query': "5.90.11";
36
+ readonly '@tanstack/react-query-devtools': "5.91.1";
37
+ readonly '@trpc/tanstack-react-query': "11.7.2";
38
+ readonly '@trpc/client': "11.7.2";
39
+ readonly '@trpc/server': "11.7.2";
40
+ readonly '@types/node': "22.19.1";
41
+ readonly '@types/aws-lambda': "8.10.159";
42
42
  readonly '@types/cors': "2.8.19";
43
43
  readonly '@types/express': "5.0.5";
44
- readonly '@smithy/types': "4.8.1";
44
+ readonly '@smithy/types': "4.9.0";
45
45
  readonly aws4fetch: "1.0.20";
46
- readonly 'aws-cdk': "2.1031.1";
47
- readonly 'aws-cdk-lib': "2.222.0";
48
- readonly 'aws-xray-sdk-core': "3.11.0";
49
- readonly constructs: "10.4.2";
46
+ readonly 'aws-cdk': "2.1033.0";
47
+ readonly 'aws-cdk-lib': "2.229.1";
48
+ readonly '@aws-cdk/aws-bedrock-agentcore-alpha': "2.229.1-alpha.0";
49
+ readonly 'aws-xray-sdk-core': "3.12.0";
50
+ readonly constructs: "10.4.3";
50
51
  readonly cors: "2.8.5";
51
52
  readonly electrodb: "3.5.0";
52
- readonly esbuild: "0.25.12";
53
+ readonly esbuild: "0.27.0";
53
54
  readonly 'eslint-plugin-prettier': "5.5.4";
54
55
  readonly express: "5.1.0";
55
56
  readonly 'jsonc-eslint-parser': "2.4.1";
56
57
  readonly 'make-dir-cli': "4.0.0";
57
58
  readonly ncp: "2.0.0";
58
59
  readonly 'npm-check-updates': "19.1.2";
59
- readonly 'oidc-client-ts': "3.3.0";
60
+ readonly 'oidc-client-ts': "3.4.1";
60
61
  readonly prettier: "3.6.2";
61
62
  readonly 'react-oidc-context': "3.3.0";
62
- readonly react: "19.1.1";
63
- readonly 'react-dom': "19.1.1";
64
- readonly rimraf: "6.1.0";
63
+ readonly react: "19.2.0";
64
+ readonly 'react-dom': "19.2.0";
65
+ readonly rimraf: "6.1.2";
65
66
  readonly rolldown: "1.0.0-beta.45";
66
67
  readonly 'source-map-support': "0.5.21";
67
- readonly tailwindcss: "4.1.16";
68
- readonly '@tailwindcss/vite': "4.1.16";
68
+ readonly tailwindcss: "4.1.17";
69
+ readonly '@tailwindcss/vite': "4.1.17";
69
70
  readonly tsx: "4.20.6";
70
71
  readonly 'vite-tsconfig-paths': "5.1.4";
71
- readonly zod: "4.1.12";
72
+ readonly zod: "4.1.13";
72
73
  readonly 'zod-v3': "npm:zod@^3";
73
74
  };
74
75
  export type ITsDepVersion = keyof typeof TS_VERSIONS;
@@ -76,26 +77,26 @@ export type ITsDepVersion = keyof typeof TS_VERSIONS;
76
77
  * Add versions to the given dependencies
77
78
  */
78
79
  export declare const withVersions: (deps: ITsDepVersion[]) => {
79
- [k: string]: "3.922.0" | "1.0.0-alpha.10" | "2.28.1" | "6.4.5" | "21.2.0" | "9.0.1" | "22.0.2" | "1.21.0" | "0.17.2" | "1.134.12" | "1.133.19" | "3.0.126" | "3.0.1124" | "1.0.47" | "5.90.6" | "5.90.2" | "11.7.1" | "22.19.0" | "8.10.158" | "2.8.19" | "5.0.5" | "4.8.1" | "1.0.20" | "2.1031.1" | "2.222.0" | "3.11.0" | "10.4.2" | "2.8.5" | "3.5.0" | "0.25.12" | "5.5.4" | "5.1.0" | "2.4.1" | "4.0.0" | "2.0.0" | "19.1.2" | "3.3.0" | "3.6.2" | "19.1.1" | "6.1.0" | "1.0.0-beta.45" | "0.5.21" | "4.1.16" | "4.20.6" | "5.1.4" | "4.1.12" | "npm:zod@^3";
80
+ [k: string]: "3.940.0" | "1.0.0-alpha.10" | "2.29.0" | "6.4.5" | "21.2.0" | "9.0.1" | "22.1.3" | "1.21.0" | "0.17.2" | "1.139.6" | "1.139.0" | "3.0.130" | "3.0.1143" | "1.0.49" | "5.90.11" | "5.91.1" | "11.7.2" | "22.19.1" | "8.10.159" | "2.8.19" | "5.0.5" | "4.9.0" | "1.0.20" | "2.1033.0" | "2.229.1" | "2.229.1-alpha.0" | "3.12.0" | "10.4.3" | "2.8.5" | "3.5.0" | "0.27.0" | "5.5.4" | "5.1.0" | "2.4.1" | "4.0.0" | "2.0.0" | "19.1.2" | "3.4.1" | "3.6.2" | "3.3.0" | "19.2.0" | "6.1.2" | "1.0.0-beta.45" | "0.5.21" | "4.1.17" | "4.20.6" | "5.1.4" | "4.1.13" | "npm:zod@^3";
80
81
  };
81
82
  /**
82
83
  * Versions for Python dependencies added by generators
83
84
  */
84
85
  export declare const PY_VERSIONS: {
85
- readonly 'aws-lambda-powertools': "==3.22.1";
86
- readonly 'aws-lambda-powertools[tracer]': "==3.22.1";
87
- readonly 'aws-lambda-powertools[parser]': "==3.22.1";
88
- readonly 'aws-opentelemetry-distro': "==0.12.2";
86
+ readonly 'aws-lambda-powertools': "==3.23.0";
87
+ readonly 'aws-lambda-powertools[tracer]': "==3.23.0";
88
+ readonly 'aws-lambda-powertools[parser]': "==3.23.0";
89
+ readonly 'aws-opentelemetry-distro': "==0.14.0";
89
90
  readonly 'bedrock-agentcore': "==0.1.7";
90
- readonly boto3: "==1.40.69";
91
- readonly checkov: "==3.2.491";
92
- readonly fastapi: "==0.121.1";
93
- readonly 'fastapi[standard]': "==0.121.1";
91
+ readonly boto3: "==1.41.5";
92
+ readonly checkov: "==3.2.495";
93
+ readonly fastapi: "==0.123.0";
94
+ readonly 'fastapi[standard]': "==0.123.0";
94
95
  readonly mangum: "==0.19.0";
95
- readonly mcp: "==1.21.0";
96
+ readonly mcp: "==1.22.0";
96
97
  readonly 'pip-check-updates': "==0.27.0";
97
- readonly 'strands-agents': "==1.15.0";
98
- readonly 'strands-agents-tools': "==0.2.14";
98
+ readonly 'strands-agents': "==1.18.0";
99
+ readonly 'strands-agents-tools': "==0.2.16";
99
100
  readonly uvicorn: "==0.38.0";
100
101
  };
101
102
  export type IPyDepVersion = keyof typeof PY_VERSIONS;
@@ -9,69 +9,70 @@ exports.withPyVersions = exports.PY_VERSIONS = exports.withVersions = exports.TS
9
9
  * Versons for TypeScript dependencies added by generators
10
10
  */
11
11
  exports.TS_VERSIONS = {
12
- '@aws-sdk/client-cognito-identity': '3.922.0',
13
- '@aws-sdk/client-dynamodb': '3.922.0',
14
- '@aws-sdk/credential-providers': '3.922.0',
15
- '@aws-sdk/credential-provider-cognito-identity': '3.922.0',
12
+ '@aws-sdk/client-cognito-identity': '3.940.0',
13
+ '@aws-sdk/client-dynamodb': '3.940.0',
14
+ '@aws-sdk/credential-providers': '3.940.0',
15
+ '@aws-sdk/credential-provider-cognito-identity': '3.940.0',
16
16
  '@aws-smithy/server-apigateway': '1.0.0-alpha.10',
17
17
  '@aws-smithy/server-node': '1.0.0-alpha.10',
18
- '@aws-lambda-powertools/logger': '2.28.1',
19
- '@aws-lambda-powertools/metrics': '2.28.1',
20
- '@aws-lambda-powertools/tracer': '2.28.1',
21
- '@aws-lambda-powertools/parser': '2.28.1',
18
+ '@aws-lambda-powertools/logger': '2.29.0',
19
+ '@aws-lambda-powertools/metrics': '2.29.0',
20
+ '@aws-lambda-powertools/tracer': '2.29.0',
21
+ '@aws-lambda-powertools/parser': '2.29.0',
22
22
  '@middy/core': '6.4.5',
23
23
  '@nxlv/python': '21.2.0',
24
24
  '@nx-extend/terraform': '9.0.1',
25
- '@nx/devkit': '22.0.2',
26
- '@nx/react': '22.0.2',
27
- 'create-nx-workspace': '22.0.2',
25
+ '@nx/devkit': '22.1.3',
26
+ '@nx/react': '22.1.3',
27
+ 'create-nx-workspace': '22.1.3',
28
28
  '@modelcontextprotocol/sdk': '1.21.0',
29
29
  '@modelcontextprotocol/inspector': '0.17.2',
30
- '@tanstack/react-router': '1.134.12',
31
- '@tanstack/router-plugin': '1.134.12',
32
- '@tanstack/router-generator': '1.134.12',
33
- '@tanstack/virtual-file-routes': '1.133.19',
34
- '@tanstack/router-utils': '1.133.19',
35
- '@cloudscape-design/board-components': '3.0.126',
36
- '@cloudscape-design/components': '3.0.1124',
37
- '@cloudscape-design/global-styles': '1.0.47',
38
- '@tanstack/react-query': '5.90.6',
39
- '@tanstack/react-query-devtools': '5.90.2',
40
- '@trpc/tanstack-react-query': '11.7.1',
41
- '@trpc/client': '11.7.1',
42
- '@trpc/server': '11.7.1',
43
- '@types/node': '22.19.0',
44
- '@types/aws-lambda': '8.10.158',
30
+ '@tanstack/react-router': '1.139.6',
31
+ '@tanstack/router-plugin': '1.139.6',
32
+ '@tanstack/router-generator': '1.139.6',
33
+ '@tanstack/virtual-file-routes': '1.139.0',
34
+ '@tanstack/router-utils': '1.139.0',
35
+ '@cloudscape-design/board-components': '3.0.130',
36
+ '@cloudscape-design/components': '3.0.1143',
37
+ '@cloudscape-design/global-styles': '1.0.49',
38
+ '@tanstack/react-query': '5.90.11',
39
+ '@tanstack/react-query-devtools': '5.91.1',
40
+ '@trpc/tanstack-react-query': '11.7.2',
41
+ '@trpc/client': '11.7.2',
42
+ '@trpc/server': '11.7.2',
43
+ '@types/node': '22.19.1',
44
+ '@types/aws-lambda': '8.10.159',
45
45
  '@types/cors': '2.8.19',
46
46
  '@types/express': '5.0.5',
47
- '@smithy/types': '4.8.1',
47
+ '@smithy/types': '4.9.0',
48
48
  aws4fetch: '1.0.20',
49
- 'aws-cdk': '2.1031.1',
50
- 'aws-cdk-lib': '2.222.0',
51
- 'aws-xray-sdk-core': '3.11.0',
52
- constructs: '10.4.2',
49
+ 'aws-cdk': '2.1033.0',
50
+ 'aws-cdk-lib': '2.229.1',
51
+ '@aws-cdk/aws-bedrock-agentcore-alpha': '2.229.1-alpha.0',
52
+ 'aws-xray-sdk-core': '3.12.0',
53
+ constructs: '10.4.3',
53
54
  cors: '2.8.5',
54
55
  electrodb: '3.5.0',
55
- esbuild: '0.25.12',
56
+ esbuild: '0.27.0',
56
57
  'eslint-plugin-prettier': '5.5.4',
57
58
  express: '5.1.0',
58
59
  'jsonc-eslint-parser': '2.4.1',
59
60
  'make-dir-cli': '4.0.0',
60
61
  ncp: '2.0.0',
61
62
  'npm-check-updates': '19.1.2',
62
- 'oidc-client-ts': '3.3.0',
63
+ 'oidc-client-ts': '3.4.1',
63
64
  prettier: '3.6.2',
64
65
  'react-oidc-context': '3.3.0',
65
- react: '19.1.1',
66
- 'react-dom': '19.1.1',
67
- rimraf: '6.1.0',
66
+ react: '19.2.0',
67
+ 'react-dom': '19.2.0',
68
+ rimraf: '6.1.2',
68
69
  rolldown: '1.0.0-beta.45',
69
70
  'source-map-support': '0.5.21',
70
- tailwindcss: '4.1.16',
71
- '@tailwindcss/vite': '4.1.16',
71
+ tailwindcss: '4.1.17',
72
+ '@tailwindcss/vite': '4.1.17',
72
73
  tsx: '4.20.6', // https://github.com/privatenumber/tsx/issues/727
73
74
  'vite-tsconfig-paths': '5.1.4',
74
- zod: '4.1.12',
75
+ zod: '4.1.13',
75
76
  // TODO: remove zod-v3 when @modelcontextprotocol/sdk upgrades to Zod v4 or standard schema
76
77
  // https://github.com/modelcontextprotocol/typescript-sdk/issues/164
77
78
  'zod-v3': 'npm:zod@^3',
@@ -85,20 +86,20 @@ exports.withVersions = withVersions;
85
86
  * Versions for Python dependencies added by generators
86
87
  */
87
88
  exports.PY_VERSIONS = {
88
- 'aws-lambda-powertools': '==3.22.1',
89
- 'aws-lambda-powertools[tracer]': '==3.22.1',
90
- 'aws-lambda-powertools[parser]': '==3.22.1',
91
- 'aws-opentelemetry-distro': '==0.12.2',
89
+ 'aws-lambda-powertools': '==3.23.0',
90
+ 'aws-lambda-powertools[tracer]': '==3.23.0',
91
+ 'aws-lambda-powertools[parser]': '==3.23.0',
92
+ 'aws-opentelemetry-distro': '==0.14.0',
92
93
  'bedrock-agentcore': '==0.1.7',
93
- boto3: '==1.40.69',
94
- checkov: '==3.2.491',
95
- fastapi: '==0.121.1',
96
- 'fastapi[standard]': '==0.121.1',
94
+ boto3: '==1.41.5',
95
+ checkov: '==3.2.495',
96
+ fastapi: '==0.123.0',
97
+ 'fastapi[standard]': '==0.123.0',
97
98
  mangum: '==0.19.0',
98
- mcp: '==1.21.0',
99
+ mcp: '==1.22.0',
99
100
  'pip-check-updates': '==0.27.0',
100
- 'strands-agents': '==1.15.0',
101
- 'strands-agents-tools': '==0.2.14',
101
+ 'strands-agents': '==1.18.0',
102
+ 'strands-agents-tools': '==0.2.16',
102
103
  uvicorn: '==0.38.0',
103
104
  };
104
105
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/utils/versions.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,kCAAkC,EAAE,SAAS;IAC7C,0BAA0B,EAAE,SAAS;IACrC,+BAA+B,EAAE,SAAS;IAC1C,+CAA+C,EAAE,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AmB,EAAE,WAAW;IAChC,MAAM,EAAE,UAAU;IAClB,GAAG,EAAE,UAAU;IACf,mBAAmB,EAAE,UAAU;IAC/B,gBAAgB,EAAE,UAAU;IAC5B,sBAAsB,EAAE,UAAU;IAClC,OAAO,EAAE,UAAU;CACX,CAAC;AAGX;;GAEG;AACI,MAAM,cAAc,GAAG,CAAC,IAAqB,EAAE,EAAE,CACtD,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,GAAG,mBAAW,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AADpC,QAAA,cAAc,kBACsB"}
@@ -1,159 +0,0 @@
1
- import {
2
- Role,
3
- ServicePrincipal,
4
- PolicyStatement,
5
- Effect,
6
- PolicyDocument,
7
- IGrantable,
8
- Grant,
9
- IPrincipal,
10
- } from 'aws-cdk-lib/aws-iam';
11
- import { Construct } from 'constructs';
12
- import { Stack } from 'aws-cdk-lib';
13
- import { CfnRuntime } from 'aws-cdk-lib/aws-bedrockagentcore';
14
-
15
- /**
16
- * Options for the AgentCoreRuntime construct
17
- */
18
- export interface AgentCoreRuntimeProps {
19
- runtimeName: string;
20
- description?: string;
21
- containerUri: string;
22
- serverProtocol: 'MCP' | 'HTTP';
23
- environment?: Record<string, string>;
24
- authorizerConfiguration?: CfnRuntime.AuthorizerConfigurationProperty;
25
- }
26
-
27
- /**
28
- * A construct for creating a Bedrock AgentCore Runtime
29
- */
30
- export class AgentCoreRuntime extends Construct implements IGrantable {
31
- public readonly role: Role;
32
- public readonly arn: string;
33
-
34
- public readonly grantPrincipal: IPrincipal;
35
-
36
- constructor(scope: Construct, id: string, props: AgentCoreRuntimeProps) {
37
- super(scope, id);
38
-
39
- const region = Stack.of(this).region;
40
- const accountId = Stack.of(this).account;
41
-
42
- this.role = new Role(this, 'AgentCoreRole', {
43
- assumedBy: new ServicePrincipal('bedrock-agentcore.amazonaws.com'),
44
- inlinePolicies: {
45
- AgentCorePolicy: new PolicyDocument({
46
- statements: [
47
- new PolicyStatement({
48
- sid: 'ECRImageAccess',
49
- effect: Effect.ALLOW,
50
- actions: ['ecr:BatchGetImage', 'ecr:GetDownloadUrlForLayer'],
51
- resources: [`arn:aws:ecr:${region}:${accountId}:repository/*`],
52
- }),
53
- new PolicyStatement({
54
- effect: Effect.ALLOW,
55
- actions: ['logs:DescribeLogStreams', 'logs:CreateLogGroup'],
56
- resources: [
57
- `arn:aws:logs:${region}:${accountId}:log-group:/aws/bedrock-agentcore/runtimes/*`,
58
- ],
59
- }),
60
- new PolicyStatement({
61
- effect: Effect.ALLOW,
62
- actions: ['logs:DescribeLogGroups'],
63
- resources: [`arn:aws:logs:${region}:${accountId}:log-group:*`],
64
- }),
65
- new PolicyStatement({
66
- effect: Effect.ALLOW,
67
- actions: ['logs:CreateLogStream', 'logs:PutLogEvents'],
68
- resources: [
69
- `arn:aws:logs:${region}:${accountId}:log-group:/aws/bedrock-agentcore/runtimes/*:log-stream:*`,
70
- ],
71
- }),
72
- new PolicyStatement({
73
- sid: 'ECRTokenAccess',
74
- effect: Effect.ALLOW,
75
- actions: ['ecr:GetAuthorizationToken'],
76
- resources: ['*'],
77
- }),
78
- new PolicyStatement({
79
- effect: Effect.ALLOW,
80
- actions: [
81
- 'xray:PutTraceSegments',
82
- 'xray:PutTelemetryRecords',
83
- 'xray:GetSamplingRules',
84
- 'xray:GetSamplingTargets',
85
- ],
86
- resources: ['*'],
87
- }),
88
- new PolicyStatement({
89
- effect: Effect.ALLOW,
90
- actions: ['cloudwatch:PutMetricData'],
91
- resources: ['*'],
92
- conditions: {
93
- StringEquals: {
94
- 'cloudwatch:namespace': 'bedrock-agentcore',
95
- },
96
- },
97
- }),
98
- new PolicyStatement({
99
- sid: 'GetAgentAccessToken',
100
- effect: Effect.ALLOW,
101
- actions: [
102
- 'bedrock-agentcore:GetWorkloadAccessToken',
103
- 'bedrock-agentcore:GetWorkloadAccessTokenForJWT',
104
- 'bedrock-agentcore:GetWorkloadAccessTokenForUserId',
105
- ],
106
- resources: [
107
- `arn:aws:bedrock-agentcore:${region}:${accountId}:workload-identity-directory/default`,
108
- `arn:aws:bedrock-agentcore:${region}:${accountId}:workload-identity-directory/default/workload-identity/*`,
109
- ],
110
- }),
111
- new PolicyStatement({
112
- sid: 'BedrockModelInvocation',
113
- effect: Effect.ALLOW,
114
- actions: [
115
- 'bedrock:InvokeModel',
116
- 'bedrock:InvokeModelWithResponseStream',
117
- ],
118
- resources: [
119
- 'arn:aws:bedrock:*::foundation-model/*',
120
- `arn:aws:bedrock:${region}:${accountId}:*`,
121
- ],
122
- }),
123
- ],
124
- }),
125
- },
126
- });
127
- this.grantPrincipal = this.role.grantPrincipal;
128
-
129
- const agentRuntime = new CfnRuntime(this, 'MCPServerRuntime', {
130
- agentRuntimeName: props.runtimeName,
131
- agentRuntimeArtifact: {
132
- containerConfiguration: {
133
- containerUri: props.containerUri,
134
- },
135
- },
136
- description: props.description,
137
- environmentVariables: props.environment,
138
- networkConfiguration: {
139
- networkMode: 'PUBLIC',
140
- },
141
- protocolConfiguration: props.serverProtocol,
142
- roleArn: this.role.roleArn,
143
- authorizerConfiguration: props.authorizerConfiguration,
144
- });
145
-
146
- this.arn = agentRuntime.attrAgentRuntimeArn;
147
- }
148
-
149
- /**
150
- * Grant permissions to invoke the agent runtime (if using IAM auth - not required for JWT auth)
151
- */
152
- public grantInvoke = (grantee: IGrantable) => {
153
- Grant.addToPrincipal({
154
- grantee,
155
- actions: ['bedrock-agentcore:InvokeAgentRuntime'],
156
- resourceArns: [this.arn, `${this.arn}/*`],
157
- });
158
- };
159
- }