# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 /*======================================= Amazon Dynamodb resources ========================================*/ resource "aws_dynamodb_table" "dynamodb_table" { name = var.name billing_mode = "PAY_PER_REQUEST" hash_key = var.hash_key range_key = var.range_key dynamic "attribute" { for_each = var.attributes content { name = attribute.value.name type = attribute.value.type } } }