bedrock-agentcore-starter-toolkit 0.1.18__py3-none-any.whl → 0.1.19__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.

@@ -47,7 +47,7 @@ class Runtime:
47
47
  region: Optional[str] = None,
48
48
  protocol: Optional[Literal["HTTP", "MCP"]] = None,
49
49
  disable_otel: bool = False,
50
- non_interactive: bool = False,
50
+ non_interactive: bool = True,
51
51
  ) -> ConfigureResult:
52
52
  """Configure Bedrock AgentCore from notebook using an entrypoint file.
53
53
 
@@ -67,7 +67,7 @@ class Runtime:
67
67
  region: AWS region for deployment
68
68
  protocol: agent server protocol, must be either HTTP or MCP
69
69
  disable_otel: Whether to disable OpenTelemetry observability (default: False)
70
- non_interactive: Skip interactive prompts and use defaults (default: False)
70
+ non_interactive: Skip interactive prompts and use defaults (default: True)
71
71
 
72
72
  Returns:
73
73
  ConfigureResult with configuration details
@@ -415,6 +415,10 @@ class GatewayClient:
415
415
  def create_oauth_authorizer_with_cognito(self, gateway_name: str) -> Dict[str, Any]:
416
416
  """Creates Cognito OAuth authorization server.
417
417
 
418
+ Note: This implementation uses AdminCreateUserOnly mode where only administrators
419
+ can create user accounts. If modifying this implementation for public clients,
420
+ review AWS Cognito security best practices regarding user sign-up policies.
421
+
418
422
  :param gateway_name: the name of the gateway being created for use in naming Cognito resources.
419
423
  :return: dictionary with details of the authorization server, client id, and client secret.
420
424
  """
@@ -425,7 +429,12 @@ class GatewayClient:
425
429
  try:
426
430
  # 1. Create User Pool
427
431
  pool_name = f"agentcore-gateway-{GatewayClient.generate_random_id()}"
428
- user_pool_response = cognito_client.create_user_pool(PoolName=pool_name)
432
+ user_pool_response = cognito_client.create_user_pool(
433
+ PoolName=pool_name,
434
+ AdminCreateUserConfig={
435
+ "AllowAdminCreateUserOnly": True # Disables self-registration
436
+ },
437
+ )
429
438
  user_pool_id = user_pool_response["UserPool"]["Id"]
430
439
  self.logger.info(" ✓ Created User Pool: %s", user_pool_id)
431
440
 
@@ -58,7 +58,7 @@ def create_test_lambda(session: Session, logger: logging.Logger, gateway_role_ar
58
58
  try:
59
59
  response = lambda_client.create_function(
60
60
  FunctionName=function_name,
61
- Runtime="python3.9",
61
+ Runtime="python3.13",
62
62
  Role=role_arn,
63
63
  Handler="lambda_function.lambda_handler",
64
64
  Code={"ZipFile": zip_buffer.read()},
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bedrock-agentcore-starter-toolkit
3
- Version: 0.1.18
3
+ Version: 0.1.19
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
@@ -13,12 +13,12 @@ bedrock_agentcore_starter_toolkit/cli/runtime/commands.py,sha256=0k86wtUZmSPZA4w
13
13
  bedrock_agentcore_starter_toolkit/cli/runtime/configuration_manager.py,sha256=72UVvnzD3aqaOBNhIMMHjNN5-mgR2oUnnWyA33oFoLM,14602
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=TL90e6r_q6osJBuHXa3cn-HgxU2WJA9TzoGU2pl0Zio,15716
16
+ bedrock_agentcore_starter_toolkit/notebook/runtime/bedrock_agentcore.py,sha256=jUpCv7MEnnUvsih37MVdQqYLJ_z2fIKNQuxgO1w7zV4,15714
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
- bedrock_agentcore_starter_toolkit/operations/gateway/client.py,sha256=A4pBxe66TKVpwVQb4GWfC5LCVvwPo0kdRqXnSgONf6w,26063
19
+ bedrock_agentcore_starter_toolkit/operations/gateway/client.py,sha256=9KQzRAEGWbBDVVacdB1GqN_HJ06vwTBs6tLwfxYROoY,26498
20
20
  bedrock_agentcore_starter_toolkit/operations/gateway/constants.py,sha256=0_4J6BN4VAE4-XTQhPTEACkhilRrFqu_iKiuHSm2pYk,4610
21
- bedrock_agentcore_starter_toolkit/operations/gateway/create_lambda.py,sha256=MQsBJfUj26zBh7LqYWLoekHuvbAHIJE8qcXwrmJOhM0,2875
21
+ bedrock_agentcore_starter_toolkit/operations/gateway/create_lambda.py,sha256=mAzXvi5hetzN2iv0ITfx6PDbOgeLOjqt71zzaDpKHnw,2876
22
22
  bedrock_agentcore_starter_toolkit/operations/gateway/create_role.py,sha256=Oma9s6K4T9EFgwPAUDungDL9fGa3W0LsHBknIXUmSpI,4474
23
23
  bedrock_agentcore_starter_toolkit/operations/gateway/exceptions.py,sha256=WjsrE7lT2708CJniM_ISMzkfNX4IUteGgvOxleD9JZY,272
24
24
  bedrock_agentcore_starter_toolkit/operations/memory/README.md,sha256=VHmdCoZImRVsiDvCnKbnt4btO5fOkfeKmoludgSbKwM,31139
@@ -72,9 +72,9 @@ bedrock_agentcore_starter_toolkit/utils/runtime/templates/Dockerfile.j2,sha256=f
72
72
  bedrock_agentcore_starter_toolkit/utils/runtime/templates/dockerignore.template,sha256=b_70sBi0MwkTuA9TqxPqFcWK7TcmpaXBJ6M2Ipox65Q,691
73
73
  bedrock_agentcore_starter_toolkit/utils/runtime/templates/execution_role_policy.json.j2,sha256=hsYLCgaWMfXuwva90yb1DVEO_HUkIjHHNcPKb60E18k,6180
74
74
  bedrock_agentcore_starter_toolkit/utils/runtime/templates/execution_role_trust_policy.json.j2,sha256=PPJF6Ofq70W5DUE0NlbmnZjw5RkgepPgkskxEgEG28o,473
75
- bedrock_agentcore_starter_toolkit-0.1.18.dist-info/METADATA,sha256=OSe2By2dPOOkhiz3JseXzCrKh0jRZEGdJuJCZciPWTI,9999
76
- bedrock_agentcore_starter_toolkit-0.1.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
77
- bedrock_agentcore_starter_toolkit-0.1.18.dist-info/entry_points.txt,sha256=Tf94DkUf2Tp8P7p8MEXLxre7A7Pp_XNukteiz0wHnk8,77
78
- bedrock_agentcore_starter_toolkit-0.1.18.dist-info/licenses/LICENSE.txt,sha256=nNPOMinitYdtfbhdQgsPgz1UowBznU6QVN3Xs0pSTKU,10768
79
- bedrock_agentcore_starter_toolkit-0.1.18.dist-info/licenses/NOTICE.txt,sha256=rkBsg8DbKqfIoQbveqX9foR4uJPUVAokbkr02pRPilE,8674
80
- bedrock_agentcore_starter_toolkit-0.1.18.dist-info/RECORD,,
75
+ bedrock_agentcore_starter_toolkit-0.1.19.dist-info/METADATA,sha256=GG02BGPitQkKkWVqf2DI9VmjRq8l_hpo7qLR1ETsWaE,9999
76
+ bedrock_agentcore_starter_toolkit-0.1.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
77
+ bedrock_agentcore_starter_toolkit-0.1.19.dist-info/entry_points.txt,sha256=Tf94DkUf2Tp8P7p8MEXLxre7A7Pp_XNukteiz0wHnk8,77
78
+ bedrock_agentcore_starter_toolkit-0.1.19.dist-info/licenses/LICENSE.txt,sha256=nNPOMinitYdtfbhdQgsPgz1UowBznU6QVN3Xs0pSTKU,10768
79
+ bedrock_agentcore_starter_toolkit-0.1.19.dist-info/licenses/NOTICE.txt,sha256=rkBsg8DbKqfIoQbveqX9foR4uJPUVAokbkr02pRPilE,8674
80
+ bedrock_agentcore_starter_toolkit-0.1.19.dist-info/RECORD,,