Prompt: Automating Cross‑Account Promotion of Amazon Quick Resources with an MCP Server
The article describes a sample MCP server hosted on Amazon Bedrock AgentCore that automates the promotion of Amazon Quick agents, connectors, knowledge bases, flows, and spaces from a development AWS account to a production (or QA) account. It uses the Quick API to read source configurations and permissions, recreates or updates resources in the target account, writes versioned backups to S3, and provides preview, migration, backup, and restore tools.
Copy This Prompt
migrate_resources --source-account {{SOURCE_ACCOUNT_ID}} --target-account {{TARGET_ACCOUNT_ID}} --resource-type {{AGENT|CONNECTOR|KNOWLEDGE_BASE|FLOW|SPACE}} --selector {{ID|NAME|ALL}} --region {{AWS_REGION}} --source-env {{SOURCE_ENV}} --target-env {{TARGET_ENV}} --quick-sight-role {{QUICK_SIGHT_SERVICE_ROLE}}Example input
Use the placeholders in the prompt with permitted, anonymized source data.
Expected output
Follow the output format requested in the prompt and verify the result against the source.
Tools
MCP server, Amazon Bedrock AgentCore runtime, AWS STS, Amazon S3 (encrypted backup bucket), Amazon Quick API, AWS IAM (source & target roles), Amazon Cognito (JWT authorizer), VPC networking
