Data Source: aws_dynamodb_table_item

Terraform data source for retrieving a value from an AWS DynamoDB table.

Example Usage

Basic Usage

data "aws_dynamodb_table_item" "test" {
  table_name = aws_dynamodb_table.example.name
  expression_attribute_names = {
    "#P" = "Percentile"
  }
  projection_expression = "#P"
  key                   = <<KEY
{
    "hashKey": {"S": "example"}
}
KEY
  depends_on            = [aws_dynamodb_table_item.example]
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

This data source exports the following attributes in addition to the arguments above: