bedrock-agentcore-starter-toolkit 0.1.13__py3-none-any.whl → 0.1.14__py3-none-any.whl

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.

Potentially problematic release.


This version of bedrock-agentcore-starter-toolkit might be problematic. Click here for more details.

@@ -167,6 +167,7 @@ def configure(
167
167
  entrypoint: Optional[str] = typer.Option(None, "--entrypoint", "-e", help="Python file with BedrockAgentCoreApp"),
168
168
  agent_name: Optional[str] = typer.Option(None, "--name", "-n"),
169
169
  execution_role: Optional[str] = typer.Option(None, "--execution-role", "-er"),
170
+ code_build_execution_role: Optional[str] = typer.Option(None, "--code-build-execution-role", "-cber"),
170
171
  ecr_repository: Optional[str] = typer.Option(None, "--ecr", "-ecr"),
171
172
  container_runtime: Optional[str] = typer.Option(None, "--container-runtime", "-ctr"),
172
173
  requirements_file: Optional[str] = typer.Option(
@@ -268,6 +269,7 @@ def configure(
268
269
  agent_name=agent_name,
269
270
  entrypoint_path=Path(entrypoint),
270
271
  execution_role=execution_role,
272
+ code_build_execution_role=code_build_execution_role,
271
273
  ecr_repository=ecr_repository,
272
274
  container_runtime=container_runtime,
273
275
  auto_create_ecr=auto_create_ecr,
@@ -35,6 +35,7 @@ class Runtime:
35
35
  self,
36
36
  entrypoint: str,
37
37
  execution_role: Optional[str] = None,
38
+ code_build_execution_role: Optional[str] = None,
38
39
  agent_name: Optional[str] = None,
39
40
  requirements: Optional[List[str]] = None,
40
41
  requirements_file: Optional[str] = None,
@@ -53,6 +54,7 @@ class Runtime:
53
54
  entrypoint: Path to Python file with optional Bedrock AgentCore name
54
55
  (e.g., "handler.py" or "handler.py:bedrock_agentcore")
55
56
  execution_role: AWS IAM execution role ARN or name (optional if auto_create_execution_role=True)
57
+ code_build_execution_role: Optional separate CodeBuild execution role ARN or name
56
58
  agent_name: name of the agent
57
59
  requirements: Optional list of requirements to generate requirements.txt
58
60
  requirements_file: Optional path to existing requirements file
@@ -109,6 +111,7 @@ class Runtime:
109
111
  entrypoint_path=Path(file_path),
110
112
  auto_create_execution_role=auto_create_execution_role,
111
113
  execution_role=execution_role,
114
+ code_build_execution_role=code_build_execution_role,
112
115
  ecr_repository=ecr_repository,
113
116
  container_runtime=container_runtime,
114
117
  auto_create_ecr=auto_create_ecr,
@@ -12,6 +12,7 @@ from ...utils.runtime.schema import (
12
12
  AWSConfig,
13
13
  BedrockAgentCoreAgentSchema,
14
14
  BedrockAgentCoreDeploymentInfo,
15
+ CodeBuildConfig,
15
16
  NetworkConfiguration,
16
17
  ObservabilityConfig,
17
18
  ProtocolConfiguration,
@@ -25,6 +26,7 @@ def configure_bedrock_agentcore(
25
26
  agent_name: str,
26
27
  entrypoint_path: Path,
27
28
  execution_role: Optional[str] = None,
29
+ code_build_execution_role: Optional[str] = None,
28
30
  ecr_repository: Optional[str] = None,
29
31
  container_runtime: Optional[str] = None,
30
32
  auto_create_ecr: bool = True,
@@ -43,6 +45,7 @@ def configure_bedrock_agentcore(
43
45
  agent_name: name of the agent,
44
46
  entrypoint_path: Path to the entrypoint file
45
47
  execution_role: AWS execution role ARN or name (auto-created if not provided)
48
+ code_build_execution_role: CodeBuild execution role ARN or name (uses execution_role if not provided)
46
49
  ecr_repository: ECR repository URI
47
50
  container_runtime: Container runtime to use
48
51
  auto_create_ecr: Whether to auto-create ECR repository
@@ -109,6 +112,24 @@ def configure_bedrock_agentcore(
109
112
  else:
110
113
  log.debug("No execution role provided and auto-create disabled")
111
114
 
115
+ # Handle CodeBuild execution role - use separate role if provided, otherwise use execution_role
116
+ codebuild_execution_role_arn = None
117
+ if code_build_execution_role:
118
+ # User provided a separate CodeBuild role
119
+ if code_build_execution_role.startswith("arn:aws:iam::"):
120
+ codebuild_execution_role_arn = code_build_execution_role
121
+ else:
122
+ codebuild_execution_role_arn = f"arn:aws:iam::{account_id}:role/{code_build_execution_role}"
123
+
124
+ if verbose:
125
+ log.debug("Using separate CodeBuild execution role: %s", codebuild_execution_role_arn)
126
+ else:
127
+ # No separate CodeBuild role provided - use None
128
+ codebuild_execution_role_arn = None
129
+
130
+ if verbose and execution_role_arn:
131
+ log.debug("Using same role for CodeBuild: %s", codebuild_execution_role_arn)
132
+
112
133
  # Generate Dockerfile and .dockerignore
113
134
  bedrock_agentcore_name = None
114
135
  # Try to find the variable name for the Bedrock AgentCore instance in the file
@@ -195,6 +216,9 @@ def configure_bedrock_agentcore(
195
216
  observability=ObservabilityConfig(enabled=enable_observability),
196
217
  ),
197
218
  bedrock_agentcore=BedrockAgentCoreDeploymentInfo(),
219
+ codebuild=CodeBuildConfig(
220
+ execution_role=codebuild_execution_role_arn,
221
+ ),
198
222
  authorizer_configuration=authorizer_configuration,
199
223
  request_header_configuration=request_header_configuration,
200
224
  )
@@ -8,7 +8,7 @@ ENV UV_SYSTEM_PYTHON=1 UV_COMPILE_BYTECODE=1
8
8
  {% if dependencies_install_path %}
9
9
  COPY {{ dependencies_install_path }} {{ dependencies_install_path }}
10
10
  # Install from pyproject.toml directory
11
- RUN uv pip install {{ dependencies_install_path }}
11
+ RUN cd {{ dependencies_install_path }} && uv pip install .
12
12
  {% else %}
13
13
  COPY {{ dependencies_file }} {{ dependencies_file }}
14
14
  # Install from requirements file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bedrock-agentcore-starter-toolkit
3
- Version: 0.1.13
3
+ Version: 0.1.14
4
4
  Summary: A starter toolkit for using Bedrock AgentCore
5
5
  Project-URL: Homepage, https://github.com/aws/bedrock-agentcore-starter-toolkit
6
6
  Project-URL: Bug Tracker, https://github.com/aws/bedrock-agentcore-starter-toolkit/issues
@@ -9,11 +9,11 @@ bedrock_agentcore_starter_toolkit/cli/import_agent/__init__.py,sha256=tyM3dXM3Tc
9
9
  bedrock_agentcore_starter_toolkit/cli/import_agent/agent_info.py,sha256=CcPXbKNnI9fc7NyFmZBjB3PkB0wAz2Q_kBGoUVcnngA,9736
10
10
  bedrock_agentcore_starter_toolkit/cli/import_agent/commands.py,sha256=vpA66fGwKf6cxBelT3Yb_Af5Ow3AMquGLIDe-tBLjmc,22419
11
11
  bedrock_agentcore_starter_toolkit/cli/runtime/__init__.py,sha256=0zKPPoYThoDIr3DZhIQJavq5nVTKRsgcE1s9--wx118,60
12
- bedrock_agentcore_starter_toolkit/cli/runtime/commands.py,sha256=pqX5E29eF8syiu1guxJJpWsYXPa273CxgvG9gv0gJR4,49138
12
+ bedrock_agentcore_starter_toolkit/cli/runtime/commands.py,sha256=BHjIr_S9UcddnLuK7exwgMSJTJxKmbaJfiJZtBrE9PY,49310
13
13
  bedrock_agentcore_starter_toolkit/cli/runtime/configuration_manager.py,sha256=ye0Dr-Hf6LUyJGU0TAFFXIDmBru0rqmAxSl389IIKkk,8875
14
14
  bedrock_agentcore_starter_toolkit/notebook/__init__.py,sha256=wH1ZzIVKsKT_P0qX2kIIoyVxeHj8K40odfR1YI3McHw,129
15
15
  bedrock_agentcore_starter_toolkit/notebook/runtime/__init__.py,sha256=DoGfB_uGFLANJVE9rSZtTH3ymw76WBWmD9vORvBIdXs,66
16
- bedrock_agentcore_starter_toolkit/notebook/runtime/bedrock_agentcore.py,sha256=UvG-X9Ny_z4VhMG8BNTy-OaZMFU4VIQ8QIHz2lm7Dyo,15328
16
+ bedrock_agentcore_starter_toolkit/notebook/runtime/bedrock_agentcore.py,sha256=ywtwvcVGX4l7cmsLgkgw7KeL3Fx1HfRCE3dIuds7CZk,15544
17
17
  bedrock_agentcore_starter_toolkit/operations/__init__.py,sha256=L7sCNjfZviiVVoh2f3NEs2sbjNqFkmIRI3ZPYMMWMz0,51
18
18
  bedrock_agentcore_starter_toolkit/operations/gateway/__init__.py,sha256=5Qo1GeN-DghNp9g0coFUs7WpUJDboJoidOVs-5Co7fo,233
19
19
  bedrock_agentcore_starter_toolkit/operations/gateway/client.py,sha256=A4pBxe66TKVpwVQb4GWfC5LCVvwPo0kdRqXnSgONf6w,26063
@@ -29,7 +29,7 @@ bedrock_agentcore_starter_toolkit/operations/memory/models/Memory.py,sha256=As1b
29
29
  bedrock_agentcore_starter_toolkit/operations/memory/models/MemoryStrategy.py,sha256=CnVfWqrSWefSxK5Oh1jllZRr1_JTnUvROLuuqTVVlWM,478
30
30
  bedrock_agentcore_starter_toolkit/operations/memory/models/MemorySummary.py,sha256=H5Itj_R3XKaUHJk4_8N_ViAfwkI-9wDhBrmOQq570Sw,469
31
31
  bedrock_agentcore_starter_toolkit/operations/runtime/__init__.py,sha256=0jRUuwSoqh4R_WqzfP4XAXngrgyFK5uH8JGXUVars6Y,793
32
- bedrock_agentcore_starter_toolkit/operations/runtime/configure.py,sha256=MUCd_pJaGnA1BhYn7KRjP6D4xWBz0g8fjkwxA0ZkE_8,9354
32
+ bedrock_agentcore_starter_toolkit/operations/runtime/configure.py,sha256=MI-5jJDYzd0BsRdaWzVMa_eoYvOVo89533B-4gSmY7Y,10484
33
33
  bedrock_agentcore_starter_toolkit/operations/runtime/create_role.py,sha256=1-b_wBvkOXNh-HJsxATwHfXQqj0dpdETds0FNSTY0BE,16116
34
34
  bedrock_agentcore_starter_toolkit/operations/runtime/destroy.py,sha256=XuQQ_fBetQxanIZQx5MMvKYQGbaUHqU9JwJXZOeraco,23541
35
35
  bedrock_agentcore_starter_toolkit/operations/runtime/invoke.py,sha256=QduqWCu4Buszcg50IKCkNHxbUMERf4CXb3bX4YP_9Ew,4764
@@ -59,13 +59,13 @@ bedrock_agentcore_starter_toolkit/utils/runtime/entrypoint.py,sha256=d-XjEwvQOdp
59
59
  bedrock_agentcore_starter_toolkit/utils/runtime/logs.py,sha256=ZZ9PD4QO0BSms5KphhUb3-6-IPTkmwkY-Zn2AWM9Aew,1601
60
60
  bedrock_agentcore_starter_toolkit/utils/runtime/policy_template.py,sha256=CgER7YXPh0BpR6JcTcumDL_k8bhmfLSEok1sf09-31I,2054
61
61
  bedrock_agentcore_starter_toolkit/utils/runtime/schema.py,sha256=KqNlF8_va5GuOVoUWMN2lT5QenJwgqG_3i_mQ-FPHJw,6533
62
- bedrock_agentcore_starter_toolkit/utils/runtime/templates/Dockerfile.j2,sha256=0KmVBMP3ZeCrt7dQ5cR8WTvI8ZVt_SFgHYRxn6DYMfA,1261
62
+ bedrock_agentcore_starter_toolkit/utils/runtime/templates/Dockerfile.j2,sha256=VYFZ01c5YUBgU2Qgj1AY0jXkOkjJgTV07Htf2cUp52Q,1269
63
63
  bedrock_agentcore_starter_toolkit/utils/runtime/templates/dockerignore.template,sha256=b_70sBi0MwkTuA9TqxPqFcWK7TcmpaXBJ6M2Ipox65Q,691
64
64
  bedrock_agentcore_starter_toolkit/utils/runtime/templates/execution_role_policy.json.j2,sha256=-0AXT46IYVQr4fwueXTQ0FVXcCshZFNx7-2mViR34Co,4941
65
65
  bedrock_agentcore_starter_toolkit/utils/runtime/templates/execution_role_trust_policy.json.j2,sha256=PPJF6Ofq70W5DUE0NlbmnZjw5RkgepPgkskxEgEG28o,473
66
- bedrock_agentcore_starter_toolkit-0.1.13.dist-info/METADATA,sha256=SFM1-1WtcP0J8YTi9HZk0l3a5kacFIuw5I5EkTkFP9M,9999
67
- bedrock_agentcore_starter_toolkit-0.1.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
68
- bedrock_agentcore_starter_toolkit-0.1.13.dist-info/entry_points.txt,sha256=Tf94DkUf2Tp8P7p8MEXLxre7A7Pp_XNukteiz0wHnk8,77
69
- bedrock_agentcore_starter_toolkit-0.1.13.dist-info/licenses/LICENSE.txt,sha256=nNPOMinitYdtfbhdQgsPgz1UowBznU6QVN3Xs0pSTKU,10768
70
- bedrock_agentcore_starter_toolkit-0.1.13.dist-info/licenses/NOTICE.txt,sha256=rkBsg8DbKqfIoQbveqX9foR4uJPUVAokbkr02pRPilE,8674
71
- bedrock_agentcore_starter_toolkit-0.1.13.dist-info/RECORD,,
66
+ bedrock_agentcore_starter_toolkit-0.1.14.dist-info/METADATA,sha256=mhElnY7zlazFcm2PZVczfRVbQgLssTeYA8mtmnjK_40,9999
67
+ bedrock_agentcore_starter_toolkit-0.1.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
68
+ bedrock_agentcore_starter_toolkit-0.1.14.dist-info/entry_points.txt,sha256=Tf94DkUf2Tp8P7p8MEXLxre7A7Pp_XNukteiz0wHnk8,77
69
+ bedrock_agentcore_starter_toolkit-0.1.14.dist-info/licenses/LICENSE.txt,sha256=nNPOMinitYdtfbhdQgsPgz1UowBznU6QVN3Xs0pSTKU,10768
70
+ bedrock_agentcore_starter_toolkit-0.1.14.dist-info/licenses/NOTICE.txt,sha256=rkBsg8DbKqfIoQbveqX9foR4uJPUVAokbkr02pRPilE,8674
71
+ bedrock_agentcore_starter_toolkit-0.1.14.dist-info/RECORD,,