{"id":29019618,"url":"https://github.com/senora-dev/terraform-aws-dynamodb-table","last_synced_at":"2026-02-03T19:31:40.419Z","repository":{"id":301182450,"uuid":"1000659249","full_name":"Senora-dev/terraform-aws-dynamodb-table","owner":"Senora-dev","description":"This Terraform module creates a DynamoDB table with support for various features.","archived":false,"fork":false,"pushed_at":"2025-06-25T14:46:54.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-25T15:39:00.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Senora-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-12T06:08:32.000Z","updated_at":"2025-06-25T14:39:57.000Z","dependencies_parsed_at":"2025-06-25T15:39:02.409Z","dependency_job_id":"2fadc2b0-cf7b-43ef-9a69-7e01f629f58f","html_url":"https://github.com/Senora-dev/terraform-aws-dynamodb-table","commit_stats":null,"previous_names":["senora-dev/terraform-aws-dynamodb-table"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Senora-dev/terraform-aws-dynamodb-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-dynamodb-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-dynamodb-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-dynamodb-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-dynamodb-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Senora-dev","download_url":"https://codeload.github.com/Senora-dev/terraform-aws-dynamodb-table/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-dynamodb-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29054671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T00:31:19.848Z","updated_at":"2026-02-03T19:31:40.396Z","avatar_url":"https://github.com/Senora-dev.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS DynamoDB Table Terraform Module\n\nThis Terraform module creates a DynamoDB table with support for various features including:\n- On-demand or provisioned capacity\n- Auto-scaling\n- Global tables (replication)\n- Point-in-time recovery\n- Server-side encryption\n- TTL\n- Local and global secondary indexes\n\n## Features\n\n- Create DynamoDB tables with flexible configuration\n- Support for both on-demand and provisioned capacity modes\n- Auto-scaling for read and write capacity\n- Global tables with multi-region replication\n- Point-in-time recovery\n- Server-side encryption with KMS\n- TTL (Time To Live) support\n- Local and global secondary indexes\n- Tagging support\n\n## Usage\n\n```hcl\nmodule \"dynamodb_table\" {\n  source = \"Senora-dev/dynamodb-table/aws\"\n\n  name                        = \"my-table\"\n  billing_mode               = \"PROVISIONED\"\n  hash_key                   = \"id\"\n  range_key                  = \"title\"\n  table_class                = \"STANDARD\"\n  deletion_protection_enabled = false\n\n  read_capacity  = 5\n  write_capacity = 5\n\n  attributes = [\n    {\n      name = \"id\"\n      type = \"S\"\n    },\n    {\n      name = \"title\"\n      type = \"S\"\n    },\n    {\n      name = \"created_at\"\n      type = \"N\"\n    }\n  ]\n\n  global_secondary_indexes = [\n    {\n      name               = \"TitleIndex\"\n      hash_key           = \"title\"\n      range_key          = \"created_at\"\n      projection_type    = \"INCLUDE\"\n      non_key_attributes = [\"id\"]\n    }\n  ]\n\n  tags = {\n    Environment = \"production\"\n    Terraform   = \"true\"\n  }\n}\n```\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| terraform | \u003e= 0.13.1 |\n| aws | \u003e= 3.0 |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| create_table | Whether to create the DynamoDB table | `bool` | `true` | no |\n| name | The name of the table | `string` | n/a | yes |\n| billing_mode | The billing mode for the table | `string` | `\"PROVISIONED\"` | no |\n| hash_key | The attribute to use as the hash (partition) key | `string` | n/a | yes |\n| range_key | The attribute to use as the range (sort) key | `string` | `null` | no |\n| read_capacity | The number of read units for the table | `number` | `null` | no |\n| write_capacity | The number of write units for the table | `number` | `null` | no |\n| attributes | List of nested attribute definitions | `list(map(string))` | `[]` | no |\n| global_secondary_indexes | List of global secondary indexes | `list(map(string))` | `[]` | no |\n| local_secondary_indexes | List of local secondary indexes | `list(map(string))` | `[]` | no |\n| stream_enabled | Whether to enable DynamoDB Streams | `bool` | `false` | no |\n| stream_view_type | When an item in the table is modified, what information is written to the stream | `string` | `null` | no |\n| ttl_enabled | Whether to enable TTL | `bool` | `false` | no |\n| ttl_attribute_name | The name of the table attribute to store the TTL timestamp | `string` | `null` | no |\n| point_in_time_recovery_enabled | Whether to enable point-in-time recovery | `bool` | `false` | no |\n| server_side_encryption_enabled | Whether to enable server-side encryption | `bool` | `true` | no |\n| server_side_encryption_kms_key_arn | The ARN of the KMS key to use for server-side encryption | `string` | `null` | no |\n| replica_regions | List of regions to replicate the table to | `list(map(string))` | `[]` | no |\n| autoscaling_enabled | Whether to enable auto-scaling | `bool` | `false` | no |\n| read_min_capacity | Minimum read capacity units | `number` | `5` | no |\n| read_max_capacity | Maximum read capacity units | `number` | `20` | no |\n| write_min_capacity | Minimum write capacity units | `number` | `5` | no |\n| write_max_capacity | Maximum write capacity units | `number` | `20` | no |\n| read_target_value | Target value for read capacity utilization | `number` | `70` | no |\n| write_target_value | Target value for write capacity utilization | `number` | `70` | no |\n| tags | A map of tags to add to all resources | `map(string)` | `{}` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| table_id | The ID of the DynamoDB table |\n| table_arn | The ARN of the DynamoDB table |\n| table_name | The name of the DynamoDB table |\n| table_stream_arn | The ARN of the DynamoDB stream |\n| table_stream_label | A timestamp, in ISO 8601 format, for this stream |\n\n## Examples\n\n### Basic Table\n\n```hcl\nmodule \"dynamodb_table\" {\n  source = \"terraform-aws-modules/dynamodb-table/aws\"\n\n  name                        = \"my-table\"\n  billing_mode               = \"PROVISIONED\"\n  hash_key                   = \"id\"\n  range_key                  = \"title\"\n  deletion_protection_enabled = false\n\n  read_capacity  = 5\n  write_capacity = 5\n\n  attributes = [\n    {\n      name = \"id\"\n      type = \"S\"\n    },\n    {\n      name = \"title\"\n      type = \"S\"\n    }\n  ]\n\n  tags = {\n    Environment = \"production\"\n    Terraform   = \"true\"\n  }\n}\n```\n\n### Table with Auto-scaling\n\n```hcl\nmodule \"dynamodb_table\" {\n  source = \"terraform-aws-modules/dynamodb-table/aws\"\n\n  name                        = \"my-table\"\n  billing_mode               = \"PROVISIONED\"\n  hash_key                   = \"id\"\n  deletion_protection_enabled = false\n\n  read_capacity  = 5\n  write_capacity = 5\n\n  attributes = [\n    {\n      name = \"id\"\n      type = \"S\"\n    }\n  ]\n\n  autoscaling_enabled = true\n  read_min_capacity   = 5\n  read_max_capacity   = 20\n  write_min_capacity  = 5\n  write_max_capacity  = 20\n\n  tags = {\n    Environment = \"production\"\n    Terraform   = \"true\"\n  }\n}\n```\n\n### Global Table\n\n```hcl\nmodule \"dynamodb_table\" {\n  source = \"terraform-aws-modules/dynamodb-table/aws\"\n\n  name                        = \"my-table\"\n  billing_mode               = \"PROVISIONED\"\n  hash_key                   = \"id\"\n  deletion_protection_enabled = false\n\n  read_capacity  = 5\n  write_capacity = 5\n\n  attributes = [\n    {\n      name = \"id\"\n      type = \"S\"\n    }\n  ]\n\n  replica_regions = [\n    {\n      region_name = \"eu-west-1\"\n    },\n    {\n      region_name = \"ap-southeast-1\"\n    }\n  ]\n\n  tags = {\n    Environment = \"production\"\n    Terraform   = \"true\"\n  }\n}\n```\n\n## License\n\nMIT Licensed. See [LICENSE](LICENSE) for full details.\n\n## Maintainers\n\nThis module is maintained by [Senora.dev](https://senora.dev). ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenora-dev%2Fterraform-aws-dynamodb-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsenora-dev%2Fterraform-aws-dynamodb-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenora-dev%2Fterraform-aws-dynamodb-table/lists"}