@aws/agentcore-cdk 0.1.0-alpha.1 → 0.1.0-alpha.3

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 (71) hide show
  1. package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.d.ts +24 -0
  2. package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.d.ts.map +1 -0
  3. package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.js +32 -0
  4. package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.js.map +1 -0
  5. package/dist/cdk/constructs/bundling/container/index.d.ts +2 -0
  6. package/dist/cdk/constructs/bundling/container/index.d.ts.map +1 -0
  7. package/dist/cdk/constructs/bundling/container/index.js +6 -0
  8. package/dist/cdk/constructs/bundling/container/index.js.map +1 -0
  9. package/dist/cdk/constructs/bundling/index.d.ts +2 -0
  10. package/dist/cdk/constructs/bundling/index.d.ts.map +1 -1
  11. package/dist/cdk/constructs/bundling/index.js +5 -1
  12. package/dist/cdk/constructs/bundling/index.js.map +1 -1
  13. package/dist/cdk/constructs/components/container/AgentEcrRepository.d.ts +25 -0
  14. package/dist/cdk/constructs/components/container/AgentEcrRepository.d.ts.map +1 -0
  15. package/dist/cdk/constructs/components/container/AgentEcrRepository.js +74 -0
  16. package/dist/cdk/constructs/components/container/AgentEcrRepository.js.map +1 -0
  17. package/dist/cdk/constructs/components/container/ContainerBuildProject.d.ts +31 -0
  18. package/dist/cdk/constructs/components/container/ContainerBuildProject.d.ts.map +1 -0
  19. package/dist/cdk/constructs/components/container/ContainerBuildProject.js +124 -0
  20. package/dist/cdk/constructs/components/container/ContainerBuildProject.js.map +1 -0
  21. package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts +40 -0
  22. package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts.map +1 -0
  23. package/dist/cdk/constructs/components/container/ContainerImageBuilder.js +90 -0
  24. package/dist/cdk/constructs/components/container/ContainerImageBuilder.js.map +1 -0
  25. package/dist/cdk/constructs/components/container/container-build-handler.d.ts +19 -0
  26. package/dist/cdk/constructs/components/container/container-build-handler.d.ts.map +1 -0
  27. package/dist/cdk/constructs/components/container/container-build-handler.js +113 -0
  28. package/dist/cdk/constructs/components/container/container-build-handler.js.map +1 -0
  29. package/dist/cdk/constructs/components/container/index.d.ts +4 -0
  30. package/dist/cdk/constructs/components/container/index.d.ts.map +1 -0
  31. package/dist/cdk/constructs/components/container/index.js +10 -0
  32. package/dist/cdk/constructs/components/container/index.js.map +1 -0
  33. package/dist/cdk/constructs/components/index.d.ts +1 -0
  34. package/dist/cdk/constructs/components/index.d.ts.map +1 -1
  35. package/dist/cdk/constructs/components/index.js +1 -0
  36. package/dist/cdk/constructs/components/index.js.map +1 -1
  37. package/dist/cdk/constructs/components/primitives/index.d.ts +1 -1
  38. package/dist/cdk/constructs/components/primitives/index.d.ts.map +1 -1
  39. package/dist/cdk/constructs/components/primitives/index.js +1 -2
  40. package/dist/cdk/constructs/components/primitives/index.js.map +1 -1
  41. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts +8 -2
  42. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts.map +1 -1
  43. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js +61 -18
  44. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js.map +1 -1
  45. package/dist/cdk/constructs/components/primitives/runtime/index.d.ts +0 -1
  46. package/dist/cdk/constructs/components/primitives/runtime/index.d.ts.map +1 -1
  47. package/dist/cdk/constructs/components/primitives/runtime/index.js +1 -3
  48. package/dist/cdk/constructs/components/primitives/runtime/index.js.map +1 -1
  49. package/dist/cdk/constructs/index.d.ts +1 -1
  50. package/dist/cdk/constructs/index.d.ts.map +1 -1
  51. package/dist/cdk/constructs/index.js +1 -2
  52. package/dist/cdk/constructs/index.js.map +1 -1
  53. package/dist/cdk/constructs/l3/AgentEnvironment.d.ts.map +1 -1
  54. package/dist/cdk/constructs/l3/AgentEnvironment.js +44 -11
  55. package/dist/cdk/constructs/l3/AgentEnvironment.js.map +1 -1
  56. package/dist/cdk/index.d.ts +1 -1
  57. package/dist/cdk/index.d.ts.map +1 -1
  58. package/dist/cdk/index.js +1 -2
  59. package/dist/cdk/index.js.map +1 -1
  60. package/dist/index.d.ts +1 -1
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +1 -2
  63. package/dist/index.js.map +1 -1
  64. package/dist/schema/schemas/agent-env.d.ts.map +1 -1
  65. package/dist/schema/schemas/agent-env.js +7 -1
  66. package/dist/schema/schemas/agent-env.js.map +1 -1
  67. package/package.json +7 -7
  68. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntimeRole.d.ts +0 -24
  69. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntimeRole.d.ts.map +0 -1
  70. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntimeRole.js +0 -39
  71. package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntimeRole.js.map +0 -1
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONTAINER_BUILD_HANDLER_CODE = void 0;
4
+ /**
5
+ * Inline Lambda handler code for triggering CodeBuild container image builds.
6
+ *
7
+ * This is deployed via lambda.Code.fromInline() as a CloudFormation Custom Resource handler.
8
+ * It starts a CodeBuild build, polls for completion, and returns the container URI.
9
+ *
10
+ * Stored as a string constant (not a standalone .js file) because this library is
11
+ * consumed as an npm package — __dirname / fromAsset paths won't resolve correctly
12
+ * in consumer projects.
13
+ *
14
+ * Custom Resource properties:
15
+ * - ProjectName: CodeBuild project name
16
+ * - SourceBucket/SourceKey: S3 location of the source code
17
+ * - EcrRegistry: ECR registry URL
18
+ * - ImageUri: Target image URI (repo:tag)
19
+ * - DockerfilePath: Path to Dockerfile in the source
20
+ */
21
+ exports.CONTAINER_BUILD_HANDLER_CODE = `
22
+ const { CodeBuildClient, StartBuildCommand, BatchGetBuildsCommand } = require('@aws-sdk/client-codebuild');
23
+ const codebuild = new CodeBuildClient();
24
+
25
+ exports.handler = async function(event, context) {
26
+ const props = event.ResourceProperties;
27
+ const requestType = event.RequestType;
28
+
29
+ // Build the response object
30
+ const response = {
31
+ Status: 'SUCCESS',
32
+ PhysicalResourceId: props.ImageUri || 'container-build',
33
+ StackId: event.StackId,
34
+ RequestId: event.RequestId,
35
+ LogicalResourceId: event.LogicalResourceId,
36
+ Data: {},
37
+ };
38
+
39
+ try {
40
+ if (requestType === 'Delete') {
41
+ response.Data = {};
42
+ await sendResponse(event, response);
43
+ return;
44
+ }
45
+
46
+ // Start CodeBuild
47
+ const startResult = await codebuild.send(new StartBuildCommand({
48
+ projectName: props.ProjectName,
49
+ sourceTypeOverride: 'S3',
50
+ sourceLocationOverride: props.SourceBucket + '/' + props.SourceKey,
51
+ environmentVariablesOverride: [
52
+ { name: 'ECR_REGISTRY', value: props.EcrRegistry, type: 'PLAINTEXT' },
53
+ { name: 'IMAGE_URI', value: props.ImageUri, type: 'PLAINTEXT' },
54
+ { name: 'DOCKERFILE_PATH', value: props.DockerfilePath, type: 'PLAINTEXT' },
55
+ ],
56
+ }));
57
+
58
+ const buildId = startResult.build.id;
59
+ console.log('Started build:', buildId);
60
+
61
+ // Poll until complete (14 minutes max to stay within Lambda's 15-minute timeout)
62
+ const maxWaitMs = 14 * 60 * 1000;
63
+ const start = Date.now();
64
+ while (Date.now() - start < maxWaitMs) {
65
+ const result = await codebuild.send(new BatchGetBuildsCommand({ ids: [buildId] }));
66
+ const build = result.builds[0];
67
+ if (build.buildStatus !== 'IN_PROGRESS') {
68
+ if (build.buildStatus === 'SUCCEEDED') {
69
+ response.Data = { ContainerUri: props.ImageUri };
70
+ await sendResponse(event, response);
71
+ return;
72
+ } else {
73
+ const logsUrl = build.logs && build.logs.deepLink ? build.logs.deepLink : 'Check CloudWatch Logs';
74
+ response.Status = 'FAILED';
75
+ response.Reason = 'CodeBuild build failed. Status: ' + build.buildStatus + '. Logs: ' + logsUrl;
76
+ await sendResponse(event, response);
77
+ return;
78
+ }
79
+ }
80
+ await new Promise(r => setTimeout(r, 10000));
81
+ }
82
+
83
+ response.Status = 'FAILED';
84
+ response.Reason = 'Build timed out after 14 minutes';
85
+ await sendResponse(event, response);
86
+ } catch (err) {
87
+ response.Status = 'FAILED';
88
+ response.Reason = err.message || 'Unknown error';
89
+ await sendResponse(event, response);
90
+ }
91
+ };
92
+
93
+ async function sendResponse(event, response) {
94
+ const https = require('https');
95
+ const url = require('url');
96
+ const responseBody = JSON.stringify(response);
97
+ const parsedUrl = url.parse(event.ResponseURL);
98
+ const options = {
99
+ hostname: parsedUrl.hostname,
100
+ port: 443,
101
+ path: parsedUrl.path,
102
+ method: 'PUT',
103
+ headers: { 'content-type': '', 'content-length': responseBody.length },
104
+ };
105
+ return new Promise((resolve, reject) => {
106
+ const req = https.request(options, resolve);
107
+ req.on('error', reject);
108
+ req.write(responseBody);
109
+ req.end();
110
+ });
111
+ }
112
+ `;
113
+ //# sourceMappingURL=container-build-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container-build-handler.js","sourceRoot":"","sources":["../../../../../src/cdk/constructs/components/container/container-build-handler.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACU,QAAA,4BAA4B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2F3C,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { AgentEcrRepository, type AgentEcrRepositoryProps } from './AgentEcrRepository';
2
+ export { ContainerBuildProject } from './ContainerBuildProject';
3
+ export { ContainerImageBuilder, type ContainerImageBuilderProps } from './ContainerImageBuilder';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cdk/constructs/components/container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerImageBuilder = exports.ContainerBuildProject = exports.AgentEcrRepository = void 0;
4
+ var AgentEcrRepository_1 = require("./AgentEcrRepository");
5
+ Object.defineProperty(exports, "AgentEcrRepository", { enumerable: true, get: function () { return AgentEcrRepository_1.AgentEcrRepository; } });
6
+ var ContainerBuildProject_1 = require("./ContainerBuildProject");
7
+ Object.defineProperty(exports, "ContainerBuildProject", { enumerable: true, get: function () { return ContainerBuildProject_1.ContainerBuildProject; } });
8
+ var ContainerImageBuilder_1 = require("./ContainerImageBuilder");
9
+ Object.defineProperty(exports, "ContainerImageBuilder", { enumerable: true, get: function () { return ContainerImageBuilder_1.ContainerImageBuilder; } });
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/cdk/constructs/components/container/index.ts"],"names":[],"mappings":";;;AAAA,2DAAwF;AAA/E,wHAAA,kBAAkB,OAAA;AAC3B,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,iEAAiG;AAAxF,8HAAA,qBAAqB,OAAA"}
@@ -1,4 +1,5 @@
1
1
  export { type AgentCoreComponentProps } from './base-props';
2
+ export * from './container';
2
3
  export * from './mcp';
3
4
  export * from './primitives';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cdk/constructs/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5D,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cdk/constructs/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5D,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./container"), exports);
17
18
  __exportStar(require("./mcp"), exports);
18
19
  __exportStar(require("./primitives"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/cdk/constructs/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,wCAAsB;AACtB,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/cdk/constructs/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,8CAA4B;AAC5B,wCAAsB;AACtB,+CAA6B"}
@@ -1,3 +1,3 @@
1
1
  export { AgentCoreMemory, type AgentCoreMemoryProps } from './memory';
2
- export { AgentCoreRuntime, type AgentCoreRuntimeProps, AgentCoreRuntimeRole, type AgentCoreRuntimeRoleProps, } from './runtime';
2
+ export { AgentCoreRuntime, type AgentCoreRuntimeProps } from './runtime';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cdk/constructs/components/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cdk/constructs/components/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,WAAW,CAAC"}
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentCoreRuntimeRole = exports.AgentCoreRuntime = exports.AgentCoreMemory = void 0;
3
+ exports.AgentCoreRuntime = exports.AgentCoreMemory = void 0;
4
4
  var memory_1 = require("./memory");
5
5
  Object.defineProperty(exports, "AgentCoreMemory", { enumerable: true, get: function () { return memory_1.AgentCoreMemory; } });
6
6
  var runtime_1 = require("./runtime");
7
7
  Object.defineProperty(exports, "AgentCoreRuntime", { enumerable: true, get: function () { return runtime_1.AgentCoreRuntime; } });
8
- Object.defineProperty(exports, "AgentCoreRuntimeRole", { enumerable: true, get: function () { return runtime_1.AgentCoreRuntimeRole; } });
9
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/cdk/constructs/components/primitives/index.ts"],"names":[],"mappings":";;;AAAA,mCAAsE;AAA7D,yGAAA,eAAe,OAAA;AACxB,qCAKmB;AAJjB,2GAAA,gBAAgB,OAAA;AAEhB,+GAAA,oBAAoB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/cdk/constructs/components/primitives/index.ts"],"names":[],"mappings":";;;AAAA,mCAAsE;AAA7D,yGAAA,eAAe,OAAA;AACxB,qCAAyE;AAAhE,2GAAA,gBAAgB,OAAA"}
@@ -8,8 +8,14 @@ import { Construct } from 'constructs';
8
8
  export interface AgentCoreRuntimeProps extends AgentCoreComponentProps {
9
9
  /** The agent configuration (v2 schema) */
10
10
  agent: AgentEnvSpec;
11
- /** The bundled code asset */
12
- codeAsset: s3_assets.Asset;
11
+ /** The bundled code asset (for CodeZip builds) */
12
+ codeAsset?: s3_assets.Asset;
13
+ /** Container URI (for Container builds) */
14
+ containerUri?: string;
15
+ /** ECR repository ARN (for Container builds, used to scope pull permissions) */
16
+ ecrRepositoryArn?: string;
17
+ /** KMS key ARN used to encrypt the ECR repository (for Container builds) */
18
+ ecrEncryptionKeyArn?: string;
13
19
  /**
14
20
  * Environment variables to set on the runtime.
15
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AgentCoreRuntime.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAA4C,OAAO,IAAI,GAAG,EAAE,aAAa,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,uBAAuB;IACpE,0CAA0C;IAC1C,KAAK,EAAE,YAAY,CAAC;IACpB,6BAA6B;IAC7B,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC;IAE3B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED;;;;;;;;;GASG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,OAAO,EAAE,MAAM,CAAC;IAChC,wEAAwE;IACxE,SAAgB,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IAC/B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;gBAE7C,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB;IAoHtE;;;OAGG;IACI,WAAW,CAAC,SAAS,EAAE,GAAG,CAAC,eAAe,GAAG,IAAI;IAIxD;;;OAGG;IACI,WAAW,CAAC,OAAO,EAAE,GAAG,CAAC,UAAU,GAAG,GAAG,CAAC,KAAK;IAQtD;;;OAGG;IACI,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAMhE"}
1
+ {"version":3,"file":"AgentCoreRuntime.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAA4C,OAAO,IAAI,GAAG,EAAE,aAAa,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,uBAAuB;IACpE,0CAA0C;IAC1C,KAAK,EAAE,YAAY,CAAC;IACpB,kDAAkD;IAClD,SAAS,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC;IAC5B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4EAA4E;IAC5E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED;;;;;;;;;GASG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,OAAO,EAAE,MAAM,CAAC;IAChC,wEAAwE;IACxE,SAAgB,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IAC/B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;gBAE7C,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB;IAuKtE;;;OAGG;IACI,WAAW,CAAC,SAAS,EAAE,GAAG,CAAC,eAAe,GAAG,IAAI;IAIxD;;;OAGG;IACI,WAAW,CAAC,OAAO,EAAE,GAAG,CAAC,UAAU,GAAG,GAAG,CAAC,KAAK;IAQtD;;;OAGG;IACI,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAMhE"}
@@ -90,6 +90,11 @@ class AgentCoreRuntime extends constructs_1.Construct {
90
90
  actions: ['secretsmanager:GetSecretValue'],
91
91
  resources: [`arn:aws:secretsmanager:*:${account}:secret:bedrock-agentcore-identity!*`],
92
92
  }));
93
+ // Grant X-Ray permissions for OpenTelemetry tracing
94
+ this.role.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
95
+ actions: ['xray:PutTraceSegments', 'xray:PutTelemetryRecords'],
96
+ resources: ['*'],
97
+ }));
93
98
  // CloudWatch Logs: DescribeLogGroups requires * (AWS limitation)
94
99
  this.role.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
95
100
  actions: ['logs:DescribeLogGroups'],
@@ -112,26 +117,58 @@ class AgentCoreRuntime extends constructs_1.Construct {
112
117
  ],
113
118
  resources: [logGroupArn],
114
119
  }));
115
- // Build artifact configuration for CodeZip
116
- const { codeAsset } = props;
117
- // Extract the file path from entrypoint (strip optional :handler suffix)
118
- const colonIndex = agent.entrypoint.indexOf(':');
119
- const entrypointPath = colonIndex >= 0 ? agent.entrypoint.substring(0, colonIndex) : agent.entrypoint;
120
- // Build entryPoint array - wrap with opentelemetry-instrument if OTel is enabled
121
- const enableOtel = agent.instrumentation?.enableOtel ?? true;
122
- const entryPoint = enableOtel ? ['opentelemetry-instrument', entrypointPath] : [entrypointPath];
123
- const agentRuntimeArtifact = {
124
- codeConfiguration: {
125
- code: {
126
- s3: {
127
- bucket: codeAsset.s3BucketName,
128
- prefix: codeAsset.s3ObjectKey,
120
+ // Grant ECR pull permissions for Container builds
121
+ if (agent.build === 'Container') {
122
+ // ecr:GetAuthorizationToken does not support resource-level permissions per AWS API
123
+ this.role.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
124
+ actions: ['ecr:GetAuthorizationToken'],
125
+ resources: ['*'],
126
+ }));
127
+ if (!props.ecrRepositoryArn) {
128
+ throw new Error('ecrRepositoryArn is required for Container builds');
129
+ }
130
+ this.role.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
131
+ actions: ['ecr:BatchGetImage', 'ecr:GetDownloadUrlForLayer', 'ecr:BatchCheckLayerAvailability'],
132
+ resources: [props.ecrRepositoryArn],
133
+ }));
134
+ if (props.ecrEncryptionKeyArn) {
135
+ this.role.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
136
+ actions: ['kms:Decrypt'],
137
+ resources: [props.ecrEncryptionKeyArn],
138
+ }));
139
+ }
140
+ }
141
+ // Build artifact configuration
142
+ let agentRuntimeArtifact;
143
+ if (agent.build === 'Container' && props.containerUri) {
144
+ agentRuntimeArtifact = {
145
+ containerConfiguration: {
146
+ containerUri: props.containerUri,
147
+ },
148
+ };
149
+ }
150
+ else if (props.codeAsset) {
151
+ // CodeZip artifact
152
+ const colonIndex = agent.entrypoint.indexOf(':');
153
+ const entrypointPath = colonIndex >= 0 ? agent.entrypoint.substring(0, colonIndex) : agent.entrypoint;
154
+ const enableOtel = agent.instrumentation?.enableOtel ?? true;
155
+ const entryPoint = enableOtel ? ['opentelemetry-instrument', entrypointPath] : [entrypointPath];
156
+ agentRuntimeArtifact = {
157
+ codeConfiguration: {
158
+ code: {
159
+ s3: {
160
+ bucket: props.codeAsset.s3BucketName,
161
+ prefix: props.codeAsset.s3ObjectKey,
162
+ },
129
163
  },
164
+ entryPoint,
165
+ runtime: agent.runtimeVersion,
130
166
  },
131
- entryPoint,
132
- runtime: agent.runtimeVersion,
133
- },
134
- };
167
+ };
168
+ }
169
+ else {
170
+ throw new Error(`Invalid runtime configuration: build=${agent.build}`);
171
+ }
135
172
  // Create Runtime resource
136
173
  this.cfnRuntime = new aws_cdk_lib_1.aws_bedrockagentcore.CfnRuntime(this, 'Resource', {
137
174
  agentRuntimeName: runtimeName,
@@ -143,6 +180,12 @@ class AgentCoreRuntime extends constructs_1.Construct {
143
180
  environmentVariables,
144
181
  description: `AgentCore Runtime: ${runtimeName}`,
145
182
  });
183
+ // The CfnRuntime references roleArn which creates an implicit CloudFormation dependency
184
+ // on the AWS::IAM::Role resource. However, policies added via role.addToPolicy() create
185
+ // a separate AWS::IAM::Policy resource. Without this explicit dependency, CloudFormation
186
+ // may create the Runtime before the policy (with ECR pull permissions, etc.) is attached,
187
+ // causing the service to reject the role during validation.
188
+ this.cfnRuntime.node.addDependency(this.role);
146
189
  this.runtimeId = this.cfnRuntime.attrAgentRuntimeId;
147
190
  this.runtimeArn = this.cfnRuntime.attrAgentRuntimeArn;
148
191
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AgentCoreRuntime.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAAoE;AAEpE,iDAAmC;AACnC,6CAAmH;AACnH,2CAAuC;AAiBvC;;;;;;;;;GASG;AACH,MAAa,gBAAiB,SAAQ,sBAAS;IAC7B,SAAS,CAAS;IAClB,UAAU,CAAS;IACnB,OAAO,CAAS;IAChC,wEAAwE;IACxD,IAAI,CAAW;IACd,U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C;IAED;;;OAGG;IACI,sBAAsB,CAAC,GAAW,EAAE,KAAa;QACtD,IAAI,CAAC,UAAU,CAAC,oBAAoB,GAAG;YACrC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,oBAAoB,IAAI,EAAE,CAAC;YAC/C,CAAC,GAAG,CAAC,EAAE,KAAK;SACb,CAAC;IACJ,CAAC;CACF;AA1JD,4CA0JC"}
1
+ {"version":3,"file":"AgentCoreRuntime.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAAoE;AAEpE,iDAAmC;AACnC,6CAAmH;AACnH,2CAAuC;AAuBvC;;;;;;;;;GASG;AACH,MAAa,gBAAiB,SAAQ,sBAAS;IAC7B,SAAS,CAAS;IAClB,UAAU,CAAS;IACnB,OAAO,CAAS;IAChC,wEAAwE;IACxD,IAAI,CAAW;IACd,UAAU,CAA8B;IAEzD,YAAY,KAAgB,EAAE,EAAU,EAAE,KAA4B;QACpE,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEjB,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;QAC3D,MAAM,WAAW,GAAG,GAAG,WAAW,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QAEnD,IAAI,CAAC,IAAI,GAAG,IAAI,qBAAG,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,EAAE;YAC9C,SAAS,EAAE,IAAI,qBAAG,CAAC,gBAAgB,CAAC,uCAA2B,CAAC;YAChE,WAAW,EAAE,kCAAkC;SAChD,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;QAEjC,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;QAE3C,0FAA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entCoreRuntimeRole, type AgentCoreRuntimeRoleProps } from './AgentCoreRuntimeRole';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentCoreRuntimeRole = exports.AgentCoreRuntime = void 0;
3
+ exports.AgentCoreRuntime = void 0;
4
4
  var AgentCoreRuntime_1 = require("./AgentCoreRuntime");
5
5
  Object.defineProperty(exports, "AgentCoreRuntime", { enumerable: true, get: function () { return AgentCoreRuntime_1.AgentCoreRuntime; } });
6
- var AgentCoreRuntimeRole_1 = require("./AgentCoreRuntimeRole");
7
- Object.defineProperty(exports, "AgentCoreRuntimeRole", { enumerable: true, get: function () { return AgentCoreRuntimeRole_1.AgentCoreRuntimeRole; } });
8
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/runtime/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkF;AAAzE,oHAAA,gBAAgB,OAAA;AACzB,+DAA8F;AAArF,4HAAA,oBAAoB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/runtime/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkF;AAAzE,oHAAA,gBAAgB,OAAA"}
@@ -1,4 +1,4 @@
1
1
  export { AgentCoreApplication, type AgentCoreApplicationProps, AgentEnvironment, type AgentEnvironmentProps, AgentCoreMcp, type AgentCoreMcpProps, } from './l3';
2
- export { type AgentCoreComponentProps, AgentCoreMemory, type AgentCoreMemoryProps, AgentCoreRuntime, type AgentCoreRuntimeProps, AgentCoreRuntimeRole, type AgentCoreRuntimeRoleProps, } from './components';
2
+ export { type AgentCoreComponentProps, AgentCoreMemory, type AgentCoreMemoryProps, AgentCoreRuntime, type AgentCoreRuntimeProps, } from './components';
3
3
  export { BundledCodeZipAsset, type BundledCodeZipAssetProps, PythonBundledCodeZipAsset } from './bundling';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cdk/constructs/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,MAAM,CAAC;AAGd,OAAO,EACL,KAAK,uBAAuB,EAC5B,eAAe,EACf,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cdk/constructs/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,MAAM,CAAC;AAGd,OAAO,EACL,KAAK,uBAAuB,EAC5B,eAAe,EACf,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PythonBundledCodeZipAsset = exports.BundledCodeZipAsset = exports.AgentCoreRuntimeRole = exports.AgentCoreRuntime = exports.AgentCoreMemory = exports.AgentCoreMcp = exports.AgentEnvironment = exports.AgentCoreApplication = void 0;
3
+ exports.PythonBundledCodeZipAsset = exports.BundledCodeZipAsset = exports.AgentCoreRuntime = exports.AgentCoreMemory = exports.AgentCoreMcp = exports.AgentEnvironment = exports.AgentCoreApplication = void 0;
4
4
  // L3 Constructs
5
5
  var l3_1 = require("./l3");
6
6
  Object.defineProperty(exports, "AgentCoreApplication", { enumerable: true, get: function () { return l3_1.AgentCoreApplication; } });
@@ -10,7 +10,6 @@ Object.defineProperty(exports, "AgentCoreMcp", { enumerable: true, get: function
10
10
  var components_1 = require("./components");
11
11
  Object.defineProperty(exports, "AgentCoreMemory", { enumerable: true, get: function () { return components_1.AgentCoreMemory; } });
12
12
  Object.defineProperty(exports, "AgentCoreRuntime", { enumerable: true, get: function () { return components_1.AgentCoreRuntime; } });
13
- Object.defineProperty(exports, "AgentCoreRuntimeRole", { enumerable: true, get: function () { return components_1.AgentCoreRuntimeRole; } });
14
13
  // Bundling Constructs
15
14
  var bundling_1 = require("./bundling");
16
15
  Object.defineProperty(exports, "BundledCodeZipAsset", { enumerable: true, get: function () { return bundling_1.BundledCodeZipAsset; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cdk/constructs/index.ts"],"names":[],"mappings":";;;AAAA,gBAAgB;AAChB,2BAOc;AANZ,0GAAA,oBAAoB,OAAA;AAEpB,sGAAA,gBAAgB,OAAA;AAEhB,kGAAA,YAAY,OAAA;AAId,uBAAuB;AACvB,2CAQsB;AANpB,6GAAA,eAAe,OAAA;AAEf,8GAAA,gBAAgB,OAAA;AAEhB,kHAAA,oBAAoB,OAAA;AAItB,sBAAsB;AACtB,uCAA2G;AAAlG,+GAAA,mBAAmB,OAAA;AAAiC,qHAAA,yBAAyB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cdk/constructs/index.ts"],"names":[],"mappings":";;;AAAA,gBAAgB;AAChB,2BAOc;AANZ,0GAAA,oBAAoB,OAAA;AAEpB,sGAAA,gBAAgB,OAAA;AAEhB,kGAAA,YAAY,OAAA;AAId,uBAAuB;AACvB,2CAMsB;AAJpB,6GAAA,eAAe,OAAA;AAEf,8GAAA,gBAAgB,OAAA;AAIlB,sBAAsB;AACtB,uCAA2G;AAAlG,+GAAA,mBAAmB,OAAA;AAAiC,qHAAA,yBAAyB,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"AgentEnvironment.d.ts","sourceRoot":"","sources":["../../../../src/cdk/constructs/l3/AgentEnvironment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAErF,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,SAAgB,OAAO,EAAE,gBAAgB,CAAC;gBAE9B,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB;IA+BtE;;;OAGG;IACH,OAAO,CAAC,aAAa;CAqBtB"}
1
+ {"version":3,"file":"AgentEnvironment.d.ts","sourceRoot":"","sources":["../../../../src/cdk/constructs/l3/AgentEnvironment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAErF,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,SAAgB,OAAO,EAAE,gBAAgB,CAAC;gBAE9B,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB;IA8DtE;;;OAGG;IACH,OAAO,CAAC,aAAa;CAqBtB"}
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AgentEnvironment = void 0;
4
4
  const logical_ids_1 = require("../../logical-ids");
5
5
  const bundling_1 = require("../bundling");
6
+ const ContainerSourceAsset_1 = require("../bundling/container/ContainerSourceAsset");
7
+ const AgentEcrRepository_1 = require("../components/container/AgentEcrRepository");
8
+ const ContainerBuildProject_1 = require("../components/container/ContainerBuildProject");
9
+ const ContainerImageBuilder_1 = require("../components/container/ContainerImageBuilder");
6
10
  const AgentCoreRuntime_1 = require("../components/primitives/runtime/AgentCoreRuntime");
7
11
  const aws_cdk_lib_1 = require("aws-cdk-lib");
8
12
  const constructs_1 = require("constructs");
@@ -18,18 +22,47 @@ class AgentEnvironment extends constructs_1.Construct {
18
22
  constructor(scope, id, props) {
19
23
  super(scope, id);
20
24
  const { projectName, agent } = props;
21
- // Create runtime - only CodeZip/Python is supported currently
22
- if (agent.build !== 'CodeZip') {
23
- throw new Error(`Only CodeZip build is supported. Received: ${agent.build}`);
25
+ // Create runtime based on build type
26
+ if (agent.build === 'CodeZip') {
27
+ const codeAsset = new bundling_1.PythonBundledCodeZipAsset(this, 'CodeAsset', {
28
+ config: agent,
29
+ });
30
+ this.runtime = new AgentCoreRuntime_1.AgentCoreRuntime(this, 'Runtime', {
31
+ projectName,
32
+ agent,
33
+ codeAsset: codeAsset.asset,
34
+ });
35
+ }
36
+ else if (agent.build === 'Container') {
37
+ // Container path - CodeBuild -> ECR -> CfnRuntime
38
+ const sourceAsset = new ContainerSourceAsset_1.ContainerSourceAsset(this, 'ContainerSourceAsset', { config: agent });
39
+ const ecrRepo = new AgentEcrRepository_1.AgentEcrRepository(this, 'AgentEcrRepository', { projectName, agentName: agent.name });
40
+ // Get or create singleton build project at stack level
41
+ const buildProject = ContainerBuildProject_1.ContainerBuildProject.getOrCreate(this);
42
+ buildProject.grantPushTo(ecrRepo.repository);
43
+ // Grant CodeBuild read access to source asset
44
+ sourceAsset.asset.grantRead(buildProject.role);
45
+ const builder = new ContainerImageBuilder_1.ContainerImageBuilder(this, 'ContainerImageBuilder', {
46
+ buildProject,
47
+ sourceAsset,
48
+ repository: ecrRepo,
49
+ dockerfile: 'Dockerfile',
50
+ });
51
+ this.runtime = new AgentCoreRuntime_1.AgentCoreRuntime(this, 'Runtime', {
52
+ projectName,
53
+ agent,
54
+ containerUri: builder.containerUri,
55
+ ecrRepositoryArn: ecrRepo.repository.repositoryArn,
56
+ ecrEncryptionKeyArn: ecrRepo.encryptionKey.keyArn,
57
+ });
58
+ // Ensure the container image is built and pushed to ECR before the runtime is created/updated.
59
+ // The Fn::GetAtt reference on containerUri creates an implicit dependency, but we make it
60
+ // explicit to guarantee ordering through Custom Resource lifecycle transitions.
61
+ this.runtime.node.addDependency(builder);
62
+ }
63
+ else {
64
+ throw new Error(`Unsupported build type: ${agent.build}`);
24
65
  }
25
- const codeAsset = new bundling_1.PythonBundledCodeZipAsset(this, 'CodeAsset', {
26
- config: agent,
27
- });
28
- this.runtime = new AgentCoreRuntime_1.AgentCoreRuntime(this, 'Runtime', {
29
- projectName,
30
- agent,
31
- codeAsset: codeAsset.asset,
32
- });
33
66
  // Add agent's env vars to the runtime
34
67
  if (agent.envVars) {
35
68
  for (const envVar of agent.envVars) {
@@ -1 +1 @@
1
- {"version":3,"file":"AgentEnvironment.js","sourceRoot":"","sources":["../../../../src/cdk/constructs/l3/AgentEnvironment.ts"],"names":[],"mappings":";;;AACA,mDAAyD;AACzD,0CAAwD;AACxD,wFAAqF;AACrF,6CAA+C;AAC/C,2CAAuC;AAmBvC;;;;;;GAMG;AACH,MAAa,gBAAiB,SAAQ,sBAAS;IAC7B,OAAO,CAAmB;IAE1C,YAAY,KAAgB,EAAE,EAAU,EAAE,KAA4B;QACpE,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEjB,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;QAErC,8DAA8D;QAC9D,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8CAA8C,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;QAC/E,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,oCAAyB,CAAC,IAAI,EAAE,WAAW,EAAE;YACjE,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,GAAG,IAAI,mCAAgB,CAAC,IAAI,EAAE,SAAS,EAAE;YACnD,WAAW;YACX,KAAK;YACL,SAAS,EAAE,SAAS,CAAC,KAAK;SAC3B,CAAC,CAAC;QAEH,sCAAsC;QACtC,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;YAClB,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;gBACnC,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;YACjE,CAAC;QACH,CAAC;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SAAS,EAAE,WAAW,CAAC;SAChE,CAAC,CAAC;QAEH,IAAI,uBAAS,CAAC,IAAI,EAAE,IAAA,sBAAQ,EAAC,YAAY,CAAC,EAAE;YAC1C,WAAW,EAAE,0BAA0B,SAAS,EAAE;YAClD,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU;YAC9B,UAAU,EAAE,IAAA,wBAAU,EAAC,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC;SACjE,CAAC,CAAC;QAEH,IAAI,uBAAS,CAAC,IAAI,EAAE,IAAA,sBAAQ,EAAC,SAAS,CAAC,EAAE;YACvC,WAAW,EAAE,iCAAiC,SAAS,EAAE;YACzD,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO;YAC3B,UAAU,EAAE,IAAA,wBAAU,EAAC,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;SAC9D,CAAC,CAAC;IACL,CAAC;CACF;AA1FD,4CA0FC"}
@@ -1,4 +1,4 @@
1
- export { AgentCoreApplication, type AgentCoreApplicationProps, AgentEnvironment, type AgentEnvironmentProps, type AgentCoreComponentProps, AgentCoreMemory, type AgentCoreMemoryProps, AgentCoreRuntime, type AgentCoreRuntimeProps, AgentCoreRuntimeRole, type AgentCoreRuntimeRoleProps, } from './constructs';
1
+ export { AgentCoreApplication, type AgentCoreApplicationProps, AgentEnvironment, type AgentEnvironmentProps, type AgentCoreComponentProps, AgentCoreMemory, type AgentCoreMemoryProps, AgentCoreRuntime, type AgentCoreRuntimeProps, } from './constructs';
2
2
  export { toPascalId, outputId, exportName } from './logical-ids';
3
3
  export { AGENTCORE_SERVICE_PRINCIPAL, LAMBDA_SERVICE_PRINCIPAL } from './constants';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cdk/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,gBAAgB,EAChB,KAAK,qBAAqB,EAE1B,KAAK,uBAAuB,EAC5B,eAAe,EACf,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGjE,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cdk/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,gBAAgB,EAChB,KAAK,qBAAqB,EAE1B,KAAK,uBAAuB,EAC5B,eAAe,EACf,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGjE,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC"}
package/dist/cdk/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LAMBDA_SERVICE_PRINCIPAL = exports.AGENTCORE_SERVICE_PRINCIPAL = exports.exportName = exports.outputId = exports.toPascalId = exports.AgentCoreRuntimeRole = exports.AgentCoreRuntime = exports.AgentCoreMemory = exports.AgentEnvironment = exports.AgentCoreApplication = void 0;
3
+ exports.LAMBDA_SERVICE_PRINCIPAL = exports.AGENTCORE_SERVICE_PRINCIPAL = exports.exportName = exports.outputId = exports.toPascalId = exports.AgentCoreRuntime = exports.AgentCoreMemory = exports.AgentEnvironment = exports.AgentCoreApplication = void 0;
4
4
  // Constructs (L3 and Component)
5
5
  var constructs_1 = require("./constructs");
6
6
  // L3 Constructs
@@ -8,7 +8,6 @@ Object.defineProperty(exports, "AgentCoreApplication", { enumerable: true, get:
8
8
  Object.defineProperty(exports, "AgentEnvironment", { enumerable: true, get: function () { return constructs_1.AgentEnvironment; } });
9
9
  Object.defineProperty(exports, "AgentCoreMemory", { enumerable: true, get: function () { return constructs_1.AgentCoreMemory; } });
10
10
  Object.defineProperty(exports, "AgentCoreRuntime", { enumerable: true, get: function () { return constructs_1.AgentCoreRuntime; } });
11
- Object.defineProperty(exports, "AgentCoreRuntimeRole", { enumerable: true, get: function () { return constructs_1.AgentCoreRuntimeRole; } });
12
11
  // CDK IDs
13
12
  var logical_ids_1 = require("./logical-ids");
14
13
  Object.defineProperty(exports, "toPascalId", { enumerable: true, get: function () { return logical_ids_1.toPascalId; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cdk/index.ts"],"names":[],"mappings":";;;AAAA,gCAAgC;AAChC,2CAcsB;AAbpB,gBAAgB;AAChB,kHAAA,oBAAoB,OAAA;AAEpB,8GAAA,gBAAgB,OAAA;AAIhB,6GAAA,eAAe,OAAA;AAEf,8GAAA,gBAAgB,OAAA;AAEhB,kHAAA,oBAAoB,OAAA;AAItB,UAAU;AACV,6CAAiE;AAAxD,yGAAA,UAAU,OAAA;AAAE,uGAAA,QAAQ,OAAA;AAAE,yGAAA,UAAU,OAAA;AAEzC,YAAY;AACZ,yCAAoF;AAA3E,wHAAA,2BAA2B,OAAA;AAAE,qHAAA,wBAAwB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cdk/index.ts"],"names":[],"mappings":";;;AAAA,gCAAgC;AAChC,2CAYsB;AAXpB,gBAAgB;AAChB,kHAAA,oBAAoB,OAAA;AAEpB,8GAAA,gBAAgB,OAAA;AAIhB,6GAAA,eAAe,OAAA;AAEf,8GAAA,gBAAgB,OAAA;AAIlB,UAAU;AACV,6CAAiE;AAAxD,yGAAA,UAAU,OAAA;AAAE,uGAAA,QAAQ,OAAA;AAAE,yGAAA,UAAU,OAAA;AAEzC,YAAY;AACZ,yCAAoF;AAA3E,wHAAA,2BAA2B,OAAA;AAAE,qHAAA,wBAAwB,OAAA"}
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Main entry point for the @aws/agentcore-cdk package.
3
3
  * Exports L3 CDK constructs, schema types, and config I/O utilities.
4
4
  */
5
- export { AgentCoreApplication, type AgentCoreApplicationProps, AgentEnvironment, type AgentEnvironmentProps, type AgentCoreComponentProps, AgentCoreMemory, type AgentCoreMemoryProps, AgentCoreRuntime, type AgentCoreRuntimeProps, AgentCoreRuntimeRole, type AgentCoreRuntimeRoleProps, } from './cdk';
5
+ export { AgentCoreApplication, type AgentCoreApplicationProps, AgentEnvironment, type AgentEnvironmentProps, type AgentCoreComponentProps, AgentCoreMemory, type AgentCoreMemoryProps, AgentCoreRuntime, type AgentCoreRuntimeProps, } from './cdk';
6
6
  export { toPascalId, outputId, exportName } from './cdk/logical-ids';
7
7
  export { AGENTCORE_SERVICE_PRINCIPAL, LAMBDA_SERVICE_PRINCIPAL } from './cdk/constants';
8
8
  export { ConfigIO, createConfigIO } from './lib/schemas/io';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAEL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,gBAAgB,EAChB,KAAK,qBAAqB,EAE1B,KAAK,uBAAuB,EAC5B,eAAe,EACf,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAGxF,OAAO,EAAE,QAAQ,EAAE,c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E,eAAe,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACvE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.resolveCodeLocation = exports.packCodeZipSync = exports.CLI_LOGS_DIR = exports.CLI_SYSTEM_DIR = exports.APP_DIR = exports.CONFIG_FILES = exports.CONFIG_DIR = exports.NoProjectError = exports.getWorkingDirectory = exports.getSessionProjectRoot = exports.setSessionProjectRoot = exports.findProjectRoot = exports.PathResolver = exports.requireConfigRoot = exports.findConfigRoot = exports.createConfigIO = exports.ConfigIO = exports.LAMBDA_SERVICE_PRINCIPAL = exports.AGENTCORE_SERVICE_PRINCIPAL = exports.exportName = exports.outputId = exports.toPascalId = exports.AgentCoreRuntimeRole = exports.AgentCoreRuntime = exports.AgentCoreMemory = exports.AgentEnvironment = exports.AgentCoreApplication = void 0;
21
+ exports.resolveCodeLocation = exports.packCodeZipSync = exports.CLI_LOGS_DIR = exports.CLI_SYSTEM_DIR = exports.APP_DIR = exports.CONFIG_FILES = exports.CONFIG_DIR = exports.NoProjectError = exports.getWorkingDirectory = exports.getSessionProjectRoot = exports.setSessionProjectRoot = exports.findProjectRoot = exports.PathResolver = exports.requireConfigRoot = exports.findConfigRoot = exports.createConfigIO = exports.ConfigIO = exports.LAMBDA_SERVICE_PRINCIPAL = exports.AGENTCORE_SERVICE_PRINCIPAL = exports.exportName = exports.outputId = exports.toPascalId = exports.AgentCoreRuntime = exports.AgentCoreMemory = exports.AgentEnvironment = exports.AgentCoreApplication = void 0;
22
22
  // L3 Constructs
23
23
  var cdk_1 = require("./cdk");
24
24
  // L3 Constructs
@@ -26,7 +26,6 @@ Object.defineProperty(exports, "AgentCoreApplication", { enumerable: true, get:
26
26
  Object.defineProperty(exports, "AgentEnvironment", { enumerable: true, get: function () { return cdk_1.AgentEnvironment; } });
27
27
  Object.defineProperty(exports, "AgentCoreMemory", { enumerable: true, get: function () { return cdk_1.AgentCoreMemory; } });
28
28
  Object.defineProperty(exports, "AgentCoreRuntime", { enumerable: true, get: function () { return cdk_1.AgentCoreRuntime; } });
29
- Object.defineProperty(exports, "AgentCoreRuntimeRole", { enumerable: true, get: function () { return cdk_1.AgentCoreRuntimeRole; } });
30
29
  // CDK Utilities
31
30
  var logical_ids_1 = require("./cdk/logical-ids");
32
31
  Object.defineProperty(exports, "toPascalId", { enumerable: true, get: function () { return logical_ids_1.toPascalId; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAEH,gBAAgB;AAChB,6BAce;AAbb,gBAAgB;AAChB,2GAAA,oBAAoB,OAAA;AAEpB,uGAAA,gBAAgB,OAAA;AAIhB,sGAAA,eAAe,OAAA;AAEf,uGAAA,gBAAgB,OAAA;AAEhB,2GAAA,oBAAoB,OAAA;AAItB,gBAAgB;AAChB,iDAAqE;AAA5D,yGAAA,UAAU,OAAA;AAAE,uGAAA,QAAQ,OAAA;AAAE,yGAAA,UAAU,OAAA;AACzC,6CAAwF;AAA/E,wHAAA,2BAA2B,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AAE9D,uEAAuE;AACvE,uCAA4D;AAAnD,8FAAA,QAAQ,OAAA;AAAE,oGAAA,cAAc,OAAA;AACjC,gEAUwC;AATtC,+GAAA,cAAc,OAAA;AACd,kHAAA,iBAAiB,OAAA;AACjB,6GAAA,YAAY,OAAA;AACZ,gHAAA,eAAe,OAAA;AACf,sHAAA,qBAAqB,OAAA;AACrB,sHAAA,qBAAqB,OAAA;AACrB,oHAAA,mBAAmB,OAAA;AACnB,+GAAA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