@@ -53,13 +53,24 @@ agentcore create --name MyProject --no-agent
5353
5454# Preview without creating
5555agentcore create --name MyProject --defaults --dry-run
56+
57+ # Import from Bedrock Agents
58+ agentcore create \
59+ --name MyImportedAgent \
60+ --type import \
61+ --agent-id AGENT123 \
62+ --agent-alias-id ALIAS456 \
63+ --region us-east-1 \
64+ --framework Strands \
65+ --memory none
5666```
5767
5868| Flag | Description |
5969| ------------------------- | -------------------------------------------------------------------------------- |
6070| ` --name <name> ` | Project name (alphanumeric, starts with letter, max 23 chars) |
6171| ` --defaults ` | Use defaults (Python, Strands, Bedrock, no memory) |
6272| ` --no-agent ` | Skip agent creation |
73+ | ` --type <type> ` | ` create ` (default) or ` import ` |
6374| ` --language <lang> ` | ` Python ` (default) |
6475| ` --framework <fw> ` | ` Strands ` , ` LangChain_LangGraph ` , ` CrewAI ` , ` GoogleADK ` , ` OpenAIAgents ` |
6576| ` --model-provider <p> ` | ` Bedrock ` , ` Anthropic ` , ` OpenAI ` , ` Gemini ` |
@@ -70,6 +81,9 @@ agentcore create --name MyProject --defaults --dry-run
7081| ` --network-mode <mode> ` | ` PUBLIC ` (default) or ` VPC ` |
7182| ` --subnets <ids> ` | Comma-separated subnet IDs (required for VPC mode) |
7283| ` --security-groups <ids> ` | Comma-separated security group IDs (required for VPC mode) |
84+ | ` --agent-id <id> ` | Bedrock Agent ID (import only) |
85+ | ` --agent-alias-id <id> ` | Bedrock Agent Alias ID (import only) |
86+ | ` --region <region> ` | AWS region for Bedrock Agent (import only) |
7387| ` --output-dir <dir> ` | Output directory |
7488| ` --skip-git ` | Skip git initialization |
7589| ` --skip-python-setup ` | Skip venv setup |
@@ -167,24 +181,37 @@ agentcore add agent \
167181 --network-mode VPC \
168182 --subnets subnet-abc,subnet-def \
169183 --security-groups sg-123
184+
185+ # Import from Bedrock Agents
186+ agentcore add agent \
187+ --name MyAgent \
188+ --type import \
189+ --agent-id AGENT123 \
190+ --agent-alias-id ALIAS456 \
191+ --region us-east-1 \
192+ --framework Strands \
193+ --memory none
170194```
171195
172196| Flag | Description |
173197| ------------------------- | -------------------------------------------------------------------------------- |
174198| ` --name <name> ` | Agent name (alphanumeric, starts with letter, max 64 chars) |
175- | ` --type <type> ` | ` create ` (default) or ` byo ` |
199+ | ` --type <type> ` | ` create ` (default), ` byo ` , or ` import ` |
176200| ` --build <type> ` | ` CodeZip ` (default) or ` Container ` (see [ Container Builds] ( container-builds.md ) ) |
177201| ` --language <lang> ` | ` Python ` (create); ` Python ` , ` TypeScript ` , ` Other ` (BYO) |
178202| ` --framework <fw> ` | ` Strands ` , ` LangChain_LangGraph ` , ` CrewAI ` , ` GoogleADK ` , ` OpenAIAgents ` |
179203| ` --model-provider <p> ` | ` Bedrock ` , ` Anthropic ` , ` OpenAI ` , ` Gemini ` |
180204| ` --api-key <key> ` | API key for non-Bedrock providers |
181- | ` --memory <opt> ` | ` none ` , ` shortTerm ` , ` longAndShortTerm ` (create only) |
205+ | ` --memory <opt> ` | ` none ` , ` shortTerm ` , ` longAndShortTerm ` (create and import) |
182206| ` --protocol <protocol> ` | ` HTTP ` (default), ` MCP ` , ` A2A ` |
183207| ` --code-location <path> ` | Path to existing code (BYO only) |
184208| ` --entrypoint <file> ` | Entry file relative to code-location (BYO, default: ` main.py ` ) |
185209| ` --network-mode <mode> ` | ` PUBLIC ` (default) or ` VPC ` |
186210| ` --subnets <ids> ` | Comma-separated subnet IDs (required for VPC mode) |
187211| ` --security-groups <ids> ` | Comma-separated security group IDs (required for VPC mode) |
212+ | ` --agent-id <id> ` | Bedrock Agent ID (import only) |
213+ | ` --agent-alias-id <id> ` | Bedrock Agent Alias ID (import only) |
214+ | ` --region <region> ` | AWS region for Bedrock Agent (import only) |
188215| ` --json ` | JSON output |
189216
190217### add memory
@@ -438,6 +465,46 @@ agentcore remove all --dry-run # Preview
438465
439466---
440467
468+ ## Tagging
469+
470+ ### tag
471+
472+ Manage AWS resource tags on your AgentCore project. Tags are applied to deployed CloudFormation resources (agents,
473+ memories, gateways). Credentials are not taggable since they're deployed via the AgentCore Identity API.
474+
475+ ``` bash
476+ # List all tags (project defaults + per-resource)
477+ agentcore tag list
478+ agentcore tag list --json
479+ agentcore tag list --resource agent:MyAgent
480+
481+ # Add a tag to a specific resource
482+ agentcore tag add --resource agent:MyAgent --key environment --value prod
483+
484+ # Remove a tag from a resource
485+ agentcore tag remove --resource agent:MyAgent --key environment
486+
487+ # Set a project-level default tag (inherited by all resources)
488+ agentcore tag set-defaults --key team --value platform
489+
490+ # Remove a project-level default tag
491+ agentcore tag remove-defaults --key team
492+ ```
493+
494+ Resource references use ` type:name ` format. Taggable types: ` agent ` , ` memory ` , ` gateway ` .
495+
496+ Per-resource tags override project-level defaults when keys conflict. Projects created with the CLI include
497+ ` agentcore:created-by ` and ` agentcore:project-name ` as defaults.
498+
499+ | Flag | Description |
500+ | ------------------ | ------------------------------ |
501+ | ` --resource <ref> ` | Resource reference (type: name ) |
502+ | ` --key <key> ` | Tag key (max 128 chars) |
503+ | ` --value <value> ` | Tag value (max 256 chars) |
504+ | ` --json ` | JSON output |
505+
506+ ---
507+
441508## Development
442509
443510### dev
0 commit comments