Skip to content

DynamoDB

One of the supported backing services are DynamoDB tables. They can be created by adding the following lines to your box.yaml:

backing_services:
  dynamodb:
    tables:
      test:
        hash_key: id
        attributes:
          - name: id
            type: S

Viewing

You can view monitoring metrics in the AWS console. There are several places where you can find them. The most important are:

DynamoDB monitoring view

You can view some monitoring metrics in the AWS DynamoDB console. To show them you have to open the Monitor view:

  • Find and select the DynamoDB console:

    Find AWS DynamoDB service

  • Open the Tables menu item:

    Select AWS DynamoDB "Tables"

  • Select your DynamoDB table. The naming convention is APP_NAME.ENVIRONMENT.BACKING_SERVICE_KEY.TABLE_KEY, all the / characters are replaced with . (e.g. devopsbox-io.example-backend-app.dev4.test):

    Select AWS DynamoDB table

  • Metrics are available in the Monitor tab:

    DynamoDB table metrics

CloudWatch

To access DynamoDB metrics in the CloudWatch console, first you have to obtain the DynamoDB table name (check " Select your DynamoDB table" in DynamoDB monitoring view). An example of a dynamodb table name is devopsbox-io.example-backend-app.dev4.test.

Monitoring metrics can be accessed in the AWS CloudWatch console. To show them you have to open the All metrics view:

  • Find and select the CloudWatch console:

    Find AWS CloudWatch service

  • Select the All metrics view:

    Select AWS CloudWatch "All metrics"

Then you can show all metrics related to your DynamoDB table by entering TableName="YOUR_DYNAMODB_TABLE_NAME" ( e.g. TableName="devopsbox-io.example-backend-app.dev4.test"):

Select AWS CloudWatch "All metrics" DynamoDB table

Notifications

There are no CloudWatch alarms or notifications automatically created for the DynamoDB backing service.