Skip to content

Releases: cloudposse/terraform-aws-dynamodb

v0.36.0

10 Apr 23:30
f153f8c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.35.1...0.36.0

v0.35.1

09 Mar 04:23
6a38025
Compare
Choose a tag to compare

🚀 Enhancements

feat: adding the option to disable ttl once it was enable before @alfredo-gil (#111)

what

The change aims to be able to disable the TTL once a dynamodb table was enabled before.

why

  • With the current dynamic block on the TTL option inside the aws_dynamodb_table resource if you change the var.ttl_enabled = false there are no changes on the infrastructure and the TTL is not disabled:
    No changes. Your infrastructure matches the configuration.
  • With this change you can disable the TTL on a dynamodb table that had it enabled before following this process:
  • Change the var.ttl_enabled = false Do the plan and apply
  • Change later the var.ttl_attribute="" or leave it empty to consolidate the state. If you don't do this second change your plan is going to say something like this and if you try to apply you will have an error...
 ~ resource "aws_dynamodb_table" "default" {
        id                          = "test"
        name                        = "test"
        tags                        = {
            ...
        }
        # (9 unchanged attributes hidden)

      ~ ttl {
          + attribute_name = "ttl"
            # (1 unchanged attribute hidden)
        }

        # (3 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Do you want to perform these actions in workspace "test"?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

module.dynamodb["test"].module.dynamodb_table.aws_dynamodb_table.default[0]: Modifying... [id=test]
╷
│ Error: updating Amazon DynamoDB Table (test): updating Time To Live: ValidationException: TimeToLive is already disabled
│ 	status code: 400, request id: XXXXXXXXXXXXXXXXXXXXXX
│
│   with module.dynamodb["test"].module.dynamodb_table.aws_dynamodb_table.default[0],
│   on .terraform/modules/dynamodb.dynamodb_table/main.tf line 46, in resource "aws_dynamodb_table" "default":
│   46: resource "aws_dynamodb_table" "default" {
│

references

🤖 Automatic Updates

Update Scaffolding @osterman (#123)

what

  • Reran make readme to rebuild README.md from README.yaml
  • Migrate to square badges
  • Add scaffolding for repo settings and Mergify

why

  • Upstream template changed in the .github repo
  • Work better with repository rulesets
  • Modernize look & feel

v0.35.0

14 Feb 18:25
78293c3
Compare
Choose a tag to compare
Add support for the import_table block @johncblandii (#120)

what

  • Added support for the import_table block

why

  • This adds support for using S3 data to import into a new table

references

v0.34.0

26 Aug 22:10
1a11bea
Compare
Choose a tag to compare
Issue 110: Add enable deletion protection @ignacioSuay (#112)

what

Add deletion_protection_enabled to the module. This feature is already available in terraform resource.

why

Terraform dynamodb_table resource has the optional parameter:
deletion_protection_enabled - (Optional) Enables deletion protection for table. Defaults to false.

We would like to be able to use the flag to avoid accidentally deleting DynamoDB tables. Therefore, we would like to add an extra variable to the module to enable/disable deletion protection.

references

This PR is related to the issue raise by the community:
#110

Sync github @max-lobur (#113)

Rebuild github dir from the template

🤖 Automatic Updates

Update README.md and docs @cloudpossebot (#117)

what

This is an auto-generated PR that updates the README.md and docs

why

To have most recent changes of README.md and doc from origin templates

v0.33.0

17 May 09:18
7f0edf8
Compare
Choose a tag to compare
  • No changes

v0.32.0

09 Nov 22:07
7f0edf8
Compare
Choose a tag to compare
fix: required aws provider version update @ivanmartos (#108)

what

Update required aws provider version

why

Changes introduced in #107 require aws provider functionality added in https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#4220-july--8-2022

This is current terraform plan output with old aws provider

Error: Unsupported argument

  on .terraform/modules/example.foo_table/main.tf line 112, in resource "aws_dynamodb_table" "default":
 112:       propagate_tags         = false

An argument named "propagate_tags" is not expected here.

Error: Unsupported argument

  on .terraform/modules/example.foo_table/main.tf line 113, in resource "aws_dynamodb_table" "default":
 113:       point_in_time_recovery = false

An argument named "point_in_time_recovery" is not expected here.

references

Release notes for aws provider https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#4220-july--8-2022

v0.31.0

24 Oct 23:29
7f1a7b0
Compare
Choose a tag to compare
Fix Perma-Drift with Replicas @milldr (#107)

what

  • Explicitly set replica attributes as the default values

why

  • If using replicas, we always see drift for plans if those values are not set

references

v0.30.0

10 Oct 13:59
ac59c47
Compare
Choose a tag to compare
Chore: add table_class option @QuentinBtd (#106)

what

Adding table_class option

why

This option can be usefull for tables with infrequent access. It can reduce costs by up to 60%.

references

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/dynamodb_table#table_class
https://aws.amazon.com/fr/dynamodb/standard-ia/

git.io->cloudposse.tools update @dylanbannon (#102)

what and why

Change all references to git.io/build-harness into cloudposse.tools/build-harness, since git.io redirects will stop working on April 29th, 2022.

References

  • DEV-143

v0.29.5

26 Jan 17:31
322c4dc
Compare
Choose a tag to compare

🚀 Enhancements

Don't set read/write capacity in PAY_PER_REQUEST billing mode @alexjurkiewicz (#101)

This causes errors at plan-time now:

Error: 2 errors occurred:
	* read_capacity can not be set when billing_mode is "PAY_PER_REQUEST"
	* write_capacity can not be set when billing_mode is "PAY_PER_REQUEST"

  with module.dynamodb_table.aws_dynamodb_table.default[0],
  on .terraform/modules/dynamodb_table/main.tf line 46, in resource "aws_dynamodb_table" "default":
  46: resource "aws_dynamodb_table" "default" {

v0.29.4

26 Oct 16:55
e605469
Compare
Choose a tag to compare

🤖 Automatic Updates

Update Terraform cloudposse/dynamodb-autoscaler/aws to v0.14.0 @renovate (#100)

This PR contains the following updates:

Package Type Update Change
cloudposse/dynamodb-autoscaler/aws (source) module minor 0.13.2 -> 0.14.0

Release Notes

cloudposse/terraform-aws-dynamodb-autoscaler

v0.14.0

Compare Source

🚀 Enhancements

Feat: Add Index Read/Write Values for Capacity and Target @​nitrocode (#​43) #### what * Add index read/write values for autoscaling capacity and target * If the index values aren't provided, the original values will be used in place via `coalesce(index, original)` #### why * Separate read/write capacities for table vs index #### references * Closes https://github.com/cloudposse/terraform-aws-dynamodb-autoscaler/issues/39

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.