diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index d887a66..6b6c9ce 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -8,7 +8,7 @@ jobs: lock: runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@v3 + - uses: dessant/lock-threads@v4 with: github-token: ${{ secrets.GITHUB_TOKEN }} issue-comment: > diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2556e0..68c0179 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: fetch-depth: 0 - name: Release - uses: cycjimmy/semantic-release-action@v2 + uses: cycjimmy/semantic-release-action@v3 with: semantic_version: 18.0.0 extra_plugins: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 321a044..bcd6019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. +## [2.0.0](https://github.com/terraform-aws-modules/terraform-aws-memory-db/compare/v1.1.2...v2.0.0) (2023-08-11) + + +### ⚠ BREAKING CHANGES + +* Add support for data tiering attribute, bump minimum supported versions of Terraform and AWS provider (#5) + +### Features + +* Add support for data tiering attribute, bump minimum supported versions of Terraform and AWS provider ([#5](https://github.com/terraform-aws-modules/terraform-aws-memory-db/issues/5)) ([1c94464](https://github.com/terraform-aws-modules/terraform-aws-memory-db/commit/1c94464a0b18e4355988b776973f64cf6f76625a)) + ### [1.1.2](https://github.com/terraform-aws-modules/terraform-aws-memory-db/compare/v1.1.1...v1.1.2) (2022-11-07) diff --git a/README.md b/README.md index 318f075..ca128a7 100644 --- a/README.md +++ b/README.md @@ -117,14 +117,14 @@ Examples codified under the [`examples`](https://github.com/terraform-aws-module | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13.1 | -| [aws](#requirement\_aws) | >= 3.71 | +| [terraform](#requirement\_terraform) | >= 1.0 | +| [aws](#requirement\_aws) | >= 5.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 3.71 | +| [aws](#provider\_aws) | >= 5.0 | ## Modules @@ -154,6 +154,7 @@ No modules. | [create\_parameter\_group](#input\_create\_parameter\_group) | Determines whether to create parameter group specified | `bool` | `true` | no | | [create\_subnet\_group](#input\_create\_subnet\_group) | Determines whether to create subnet group specified | `bool` | `true` | no | | [create\_users](#input\_create\_users) | Determines whether to create users specified | `bool` | `true` | no | +| [data\_tiering](#input\_data\_tiering) | Must be set to `true` when using a data tiering node type | `bool` | `null` | no | | [description](#input\_description) | Description for the cluster. Defaults to `Managed by Terraform` | `string` | `null` | no | | [engine\_version](#input\_engine\_version) | Version number of the Redis engine to be used for the cluster. Downgrades are not supported | `string` | `null` | no | | [final\_snapshot\_name](#input\_final\_snapshot\_name) | Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made | `string` | `null` | no | diff --git a/examples/complete/README.md b/examples/complete/README.md index 9cb78a1..0a7e475 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -25,15 +25,15 @@ Note that this example may create resources which will incur monetary charges on | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13.1 | -| [aws](#requirement\_aws) | >= 3.71 | +| [terraform](#requirement\_terraform) | >= 1.0 | +| [aws](#requirement\_aws) | >= 5.0 | | [random](#requirement\_random) | >= 3.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 3.71 | +| [aws](#provider\_aws) | >= 5.0 | | [random](#provider\_random) | >= 3.0 | ## Modules @@ -43,7 +43,7 @@ Note that this example may create resources which will incur monetary charges on | [memory\_db](#module\_memory\_db) | ../.. | n/a | | [memory\_db\_disabled](#module\_memory\_db\_disabled) | ../.. | n/a | | [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 | -| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 | +| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 | ## Resources diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 4976521..987ef5f 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -32,9 +32,10 @@ module "memory_db" { engine_version = "6.2" auto_minor_version_upgrade = true - node_type = "db.t4g.small" + node_type = "db.r6gd.xlarge" num_shards = 2 num_replicas_per_shard = 2 + data_tiering = true tls_enabled = true security_group_ids = [module.security_group.security_group_id] @@ -94,7 +95,7 @@ module "memory_db" { module "vpc" { source = "terraform-aws-modules/vpc/aws" - version = "~> 3.0" + version = "~> 4.0" name = local.name cidr = "10.99.0.0/18" diff --git a/examples/complete/versions.tf b/examples/complete/versions.tf index e5cf39d..5d81057 100644 --- a/examples/complete/versions.tf +++ b/examples/complete/versions.tf @@ -1,10 +1,10 @@ terraform { - required_version = ">= 0.13.1" + required_version = ">= 1.0" required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.71" + version = ">= 5.0" } random = { source = "hashicorp/random" diff --git a/main.tf b/main.tf index 0c56847..ea9dcea 100644 --- a/main.tf +++ b/main.tf @@ -27,6 +27,7 @@ resource "aws_memorydb_cluster" "this" { num_shards = var.num_shards num_replicas_per_shard = var.num_replicas_per_shard parameter_group_name = local.parameter_group_name + data_tiering = var.data_tiering acl_name = local.acl_name kms_key_arn = var.kms_key_arn diff --git a/variables.tf b/variables.tf index d146c51..6f59ad2 100644 --- a/variables.tf +++ b/variables.tf @@ -128,6 +128,12 @@ variable "final_snapshot_name" { default = null } +variable "data_tiering" { + description = "Must be set to `true` when using a data tiering node type" + type = bool + default = null +} + ################################################################################ # User(s) ################################################################################ diff --git a/versions.tf b/versions.tf index 457a4cc..ddfcb0e 100644 --- a/versions.tf +++ b/versions.tf @@ -1,10 +1,10 @@ terraform { - required_version = ">= 0.13.1" + required_version = ">= 1.0" required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.71" + version = ">= 5.0" } } }