This guide explains connecting to an AWS DynamoDB service running on AWS infrastructure from your DevBox.
AWS DynamoDB is a serverless, NoSQL, fully managed database. You will connect through the aws
cli tool by first authenticating into your AWS Cloud account and then accessing the contents of the DynamoDB Service.
If you already have a DynamoDB, you can follow the steps below to access its content from the DevBox.
First, we need to create a recipe for the workspace:
Go to the DevZero Dashboard > Recipes and click on New recipe.
Enter the recipe name and click on Create a recipe.
Now use the below-provided snippet to create a recipe for your workspace:
Click on Save and Build and when the build is successful, click on Publish.
Go to the Devzero Dashboard > Workspaces by clicking New workspace.
Enter the workspace name and click on Select from recipe library.
Select the recipe you just created above and click on Select.
Click on Launch, and your workspace will be ready shortly.
Now, this is where the real task begins. After downloading the `aws' cli package, we will need to authenticate with our AWS account. To do so, follow the below steps:
Go to AWS Dashboard, and on the top right corner, click on the drop-down menu and select Security credentials.
Under the Access Keys section, click on Create Access Key and agree to the Terms and Conditions.
Click create access key
and note down the Secret Access Key as this will only be shown once.
Go to your DevBox and use the following command to configure the aws
cli:
Enter the Access Key and Secret Access Key when prompted.
Enter your default Region of choice, and your aws
cli setup will be completed.
Now, with the above steps, your AWS DynamoDB connections are completed, and you can check that with the following command: