-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `dynamodb` * Add `dynamodb` * Add `dynamodb` * Add `dynamodb` * Add `dynamodb` * Add `dynamodb` * Add `dynamodb`
- Loading branch information
Showing
6 changed files
with
124 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source_up | ||
use envrc | ||
use terraform 0.12 | ||
use atlantis | ||
use tfenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-include ${TF_MODULE_CACHE}/Makefile | ||
|
||
deps: | ||
mkdir -p ${TF_MODULE_CACHE} | ||
terraform init | ||
|
||
## Reset this project | ||
reset: | ||
rm -rf ${TF_MODULE_CACHE} .terraform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export TF_MODULE_CACHE=.module | ||
|
||
# Import the remote module | ||
export TF_CLI_INIT_FROM_MODULE="git::https://github.com/cloudposse/terraform-root-modules.git//aws/dynamodb?ref=tags/0.115.0" | ||
|
||
export TF_CLI_PLAN_PARALLELISM=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name = "trader-page-stats" | ||
|
||
billing_mode = "PAY_PER_REQUEST" | ||
|
||
hash_key = "trader_id" | ||
|
||
hash_key_type = "N" | ||
|
||
range_key = "ds" | ||
|
||
range_key_type = "S" | ||
|
||
ttl_attribute = "" | ||
|
||
dynamodb_attributes = [] | ||
|
||
# Specify additional attributes only if they are part of local or global secondary indexes | ||
# Otherwise, the error "All attributes must be indexed. Unused attributes: ..." will be thrown | ||
# See https://stackoverflow.com/questions/50006885/terraform-dynamodb-all-attributes-must-be-indexed | ||
#dynamodb_attributes = [ | ||
# { | ||
# name = "lookup_count" | ||
# type = "N" | ||
# }, | ||
# { | ||
# name = "search_count" | ||
# type = "N" | ||
# }, | ||
# { | ||
# name = "external_count" | ||
# type = "N" | ||
# }, | ||
# { | ||
# name = "total_count" | ||
# type = "N" | ||
# }, | ||
# { | ||
# name = "site" | ||
# type = "N" | ||
# } | ||
#] | ||
|
||
global_secondary_index_map = [] | ||
|
||
local_secondary_index_map = [] | ||
|
||
chamber_parameters_enabled = false | ||
|
||
dynamodb_chamber_service = "dynamodb" | ||
|
||
enable_streams = false | ||
|
||
stream_view_type = "" | ||
|
||
enable_encryption = true | ||
|
||
enable_point_in_time_recovery = true | ||
|
||
enable_backup = true | ||
|
||
backup_kms_key_arn = "" | ||
|
||
backup_schedule = "cron(0 12 * * ? *)" | ||
|
||
backup_start_window = 60 | ||
|
||
backup_completion_window = 120 | ||
|
||
backup_cold_storage_after = 180 | ||
|
||
backup_delete_after = 360 | ||
|
||
# If billing_mode = "PAY_PER_REQUEST", autoscaling is not supported (setting `enable_autoscaler` to `true` has no effect). | ||
# In billing_mode = "PAY_PER_REQUEST", AWS scales the table automatically | ||
enable_autoscaler = false | ||
|
||
autoscale_write_target = 50 | ||
|
||
autoscale_read_target = 50 | ||
|
||
autoscale_min_read_capacity = 5 | ||
|
||
autoscale_max_read_capacity = 20 | ||
|
||
autoscale_min_write_capacity = 5 | ||
|
||
autoscale_max_write_capacity = 20 |