Follow the steps at the link below for linux:
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
pip install boto3
pip freeze
check that boto3
is actually there!
python -m pip install --user boto3
Create a file in your package to store your AWS credentials
Sign into AWS, and create an access key
Create an Access Policy for your services
Create a class that will hold your credentials, for example:
and any other information you may need to store for the service you choose to use.
Based on the service you’d like to use, create the appropriate client. If you’re using dynamoDB, it may look like this:
Please refer to the documentation for of the service you’d like to use and the request format
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/index.html
There are several helpful methods included with each service, here are some of dynamoDB’s methods for example:
Each method will have a unique request, so be sure to check before implementing it into your code.
This can be used within your node, but keep in mind how many requests you are making if you place your request in a loop.