Overview
If you’re using Bedrock Chat version 0.4.x or earlier, you need to migrate to V1 to take advantage of bot personalization features and important security updates.Why Migrate to V1?
This major update includes important security and feature enhancements:Security Updates
- Encrypted Vector Database: The pgvector on Aurora PostgreSQL storage is now encrypted. This triggers a database replacement when deployed, which will delete existing vector items.
- Bot Creation Permissions: The
CreatingBotAllowedCognito user group limits which users can create bots. Existing users are not in this group by default and need manual permission assignment.
New Features
- Bot Personalization: Create custom bots with specific instructions
- RAG Capabilities: Add knowledge to bots using documents (Retrieval-Augmented Generation)
- Enhanced Security: Encrypted storage for vector embeddings
Prerequisites
Before starting migration:- Read the Database Migration Guide to determine your restoration method
- Have AWS CLI access with appropriate permissions
- Access to your CloudFormation stack
- Administrator access to Amazon Cognito
Migration Methods
You can restore vector items using one of two methods:- AWS Database Migration Service (DMS): For large-scale migrations
- Migration Script: Using the provided
migrate_v0_v1.pyscript
Migration Process
Prepare for Database Migration
Choose your migration method:If using DMS (Database Migration Service):
- Disable password rotation in the Aurora cluster
- Note the password to access the database
- Keep credentials secure for DMS configuration
- No password needed (script handles authentication)
- Proceed to next step
Remove All Published APIs
Before CloudFormation can remove the existing Aurora cluster, you must delete all published APIs.
- Log in to Bedrock Chat as an administrator
- Navigate to API Management
- Delete all published APIs
- Verify all
APIPublishmentStackXXXXCloudFormation stacks are removed
Restore Vector Items
Follow the Database Migration Guide to restore your vector items using your chosen method.Using the migration script:The script will handle the restoration process automatically.
Verify RAG Bots
After restoration completes:
- Log in to Bedrock Chat
- Access bots that have knowledge (RAG bots)
- Ask questions related to the knowledge base
- Verify responses include information from documents
Configure Bot Creation Permissions
After deployment, all users will be unable to create new bots by default.To grant bot creation permissions:Using AWS Console:Find your user pool ID in CloudFormation:
- Open the Amazon Cognito console
- Navigate to the Bedrock Chat user pool
- Go to Groups
- Select the
CreatingBotAllowedgroup - Add users who should be able to create bots
Verify Bot Creation
Test that authorized users can create bots:
- Log out and log back in (required for group membership to take effect)
- Navigate to bot creation interface
- Create a test bot
- Verify the bot is created successfully
Users must re-login for the
CreatingBotAllowed group membership to take effect.Understanding User Groups
V1 introduces user group-based permissions:CreatingBotAllowed Group
- Purpose: Controls who can create personalized bots
- Default: Empty (no users have bot creation permissions)
- Location: Amazon Cognito User Pool
- Effect: Users not in this group can still use existing bots and chat, but cannot create new ones
Managing Group Membership
Best practices for managing theCreatingBotAllowed group:
- Add by Role: Grant permissions based on user roles (e.g., data scientists, power users)
- Review Regularly: Periodically review group membership
- Document Process: Create internal documentation for requesting bot creation access
- Onboarding: Include group assignment in user onboarding procedures
Post-Migration Verification
After completing all migration steps:Verify Database Encryption
Verify Database Encryption
Check that the Aurora database is now encrypted:
- Open AWS Console > RDS
- Select your Aurora cluster
- Check Configuration tab
- Verify “Encryption” shows “Enabled”
Verify Vector Data
Verify Vector Data
Test RAG functionality:
- Select a bot with knowledge/documents
- Ask specific questions about the uploaded content
- Verify accurate responses based on the documents
- Test multiple bots if possible
Verify Permission System
Verify Permission System
Test the new permission system:
- Log in as a user NOT in
CreatingBotAllowed - Verify they cannot create bots
- Log in as a user IN
CreatingBotAllowed - Verify they can create bots
Troubleshooting
CloudFormation deployment fails due to Aurora dependencies
CloudFormation deployment fails due to Aurora dependencies
Error: Stack fails to delete Aurora clusterSolution:
- Verify all published APIs are deleted
- Check for any remaining CloudFormation stacks starting with
APIPublishment - Manually delete any remaining API stacks
- Retry the deployment
Users can't create bots after migration
Users can't create bots after migration
Issue: All users unable to create botsSolution:
- This is expected behavior in V1
- Add users to
CreatingBotAllowedgroup in Cognito - Users must log out and log back in
- Verify group membership in Cognito console
Vector items not restored after migration
Vector items not restored after migration
Issue: RAG bots don’t have access to their knowledgeSolution:
- Verify the migration script completed successfully
- Check the migration logs for errors
- Review the Database Migration Guide for troubleshooting steps
- Consider re-running the migration script
- As a last resort, re-upload documents to bots
Password rotation causing issues
Password rotation causing issues
Issue: DMS migration failing due to password changesSolution:
- Temporarily disable password rotation in Aurora
- Complete the migration
- Re-enable password rotation after migration completes
Rollback Procedure
If you need to roll back to V0:- Keep backups of your V0 Aurora database
- Checkout V0 branch:
- Deploy V0:
- Restore your V0 database from backup
Next Steps
After successful migration to V1:- Explore Bot Personalization
- Learn about RAG with Documents
- Set up User Group Management
- Plan for V2 Migration when ready