Robotic with AWS IoT, AWS Bedrock, and Amazon Nova.
Upgrade node.js to version 22
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
Close the terminal.
nvm use 22
nvm alias default 22
cd cdk
pip install --upgrade awscli
npm uninstall -g cdk
npm install -g cdk
npm i -g npm-check-updates && ncu -u && npm i
Configure AWS CLI
aws configure
Default region name [None]: us-east-1 Default output format [None]: json
Get AWS IoT Certifications
aws s3 sync s3://<CdkStack.RobotDataBucketName> robot_client/certificates/
cd cdk
cdk bootstrap
cdk deploy --require-approval never
cdk destroy --require-approval never
-
Generate the deployment package:
./create_deploy_package.sh
-
Transfer the
deploy_package.zipfile to the robot. -
Extract the contents of the package:
unzip deploy_package.zip
-
Update the
settings.yamlfile to specify therobot_name. By default, up to 5 robots can be configured. -
Set up a virtual environment:
./create_virtual_env.sh
-
Activate the virtual environment and start the
pubsub.pyscript:source venv/bin/activate python pubsub.py
- Fine grant the AWS IOT device permission.