agentcore_cli.commands.resources
agentcore_cli.commands.resources
¶
AWS resource management commands for AgentCore Platform CLI.
This module provides commands for managing AWS resources including ECR repositories, IAM roles, and Cognito authentication resources.
cognito_group()
¶
create_cognito_resources(agent_name, region, environment, allow_signup, email_verification, resource_prefix)
¶
Create Cognito authentication resources.
Creates a Cognito User Pool, User Pool Client, Identity Pool, and associated IAM roles for agent authentication.
Examples:
agentcore-cli resources cognito create my-agent agentcore-cli resources cognito create my-agent --allow-signup --email-verification
Source code in agentcore_cli/commands/resources.py
Python | |
---|---|
455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 |
|
create_ecr_repository(name, region, image_scanning, lifecycle_days, environment)
¶
Create an ECR repository.
Creates a new ECR repository for storing container images. The repository will be configured with appropriate security settings.
Examples:
agentcore-cli resources ecr create my-agent agentcore-cli resources ecr create my-agent --image-scanning --lifecycle-days 7
Source code in agentcore_cli/commands/resources.py
create_iam_role(agent_name, region, role_prefix, environment)
¶
Create an IAM role for an agent.
Creates an IAM role with appropriate permissions for AgentCore runtime execution.
Examples:
agentcore-cli resources iam create my-agent agentcore-cli resources iam create my-agent --role-prefix mycompany
Source code in agentcore_cli/commands/resources.py
delete_ecr_repository(name, region, force, environment)
¶
Delete an ECR repository.
⚠️ WARNING: This will permanently delete the repository and all its images.
Examples:
agentcore-cli resources ecr delete old-repo --force
Source code in agentcore_cli/commands/resources.py
delete_iam_role(agent_name, environment, force)
¶
Delete an IAM role for an agent.
⚠️ WARNING: This will permanently delete the IAM role. Ensure no agents are using this role before deletion.
Examples:
agentcore-cli resources iam delete my-agent --force agentcore-cli resources iam delete my-agent --environment staging
Source code in agentcore_cli/commands/resources.py
ecr_group()
¶
iam_group()
¶
list_cognito_resources(environment)
¶
List Cognito authentication resources.
Shows all Cognito resources configured for AgentCore agents.
Source code in agentcore_cli/commands/resources.py
list_ecr_repositories(region, environment)
¶
List ECR repositories.
Shows all ECR repositories in the specified region, optionally filtered by environment tag.
Source code in agentcore_cli/commands/resources.py
list_iam_roles(environment)
¶
List IAM roles for agents.
Shows all AgentCore IAM roles, optionally filtered by environment.
Source code in agentcore_cli/commands/resources.py
resources_group()
¶
AWS resource management commands.
Manage ECR repositories, IAM roles, and Cognito authentication resources across your environments.