


The default output format is set to json here in order to make it readable, but this can be changed. The table should be deleted without throwing an error as it exists. I have searched the existing issues Current Behavior I carry out 3 distinct steps: create a table list all tables that have been created delete the table I just created I can carry out the first 2 ste. A list of AWS available regions can be found here. I would expect to see the following terminal output: Raise error_class(parsed_response, operation_name)ī: An error occurred (ResourceNotFoundException) when calling the DeleteTable operation: Cannot do operations on a non-existent table First, you’ll have to remove any Arn, Size. The following is an example of using the AWS CLI to list the tables in DynamoDB on your computer. To access DynamoDB running locally, use the -endpoint-url parameter.
#List tables on local dynamodb code#
(Note: You won’t be able to use the exact output above to create a new table. For example, you can use it to perform all the steps in Creating Tables and Loading Data for Code Examples in DynamoDB. Return self._make_api_call(operation_name, kwargs)įile "/usr/local/lib/python3.9/site-packages/botocore/client.py", line 705, in _make_api_call You can also use the following command to view the schema of an existing table if you’re going to create something similar: aws -profilevia dynamodb describe-table -table-nameMyTable. Response = getattr(, operation_name)(*args, **params)įile "/usr/local/lib/python3.9/site-packages/botocore/client.py", line 386, in _api_call File "/src/src/dynamo.py", line 43, in delete_tableįile "/usr/local/lib/python3.9/site-packages/boto3/resources/factory.py", line 520, in do_actionįile "/usr/local/lib/python3.9/site-packages/boto3/resources/action.py", line 83, in _call_
