diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 889c23f..7e65ba2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-added-large-files args: ['--maxkb=500'] @@ -18,7 +18,7 @@ repos: args: ['--allow-missing-credentials'] - id: trailing-whitespace - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.74.0 + rev: v1.80.0 hooks: - id: terraform_fmt - id: terraform_docs diff --git a/README.md b/README.md index c8ffd4d..ae8cf09 100644 --- a/README.md +++ b/README.md @@ -81,15 +81,15 @@ Module managed by [uMotif](https://github.com/umotif-public/) | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0.11 | -| [aws](#requirement\_aws) | >= 4.8.0, < 5.0.0 | -| [random](#requirement\_random) | >= 3.3.2, < 4.0.0 | +| [aws](#requirement\_aws) | >= 4.8.0 | +| [random](#requirement\_random) | >= 3.3.2 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.8.0, < 5.0.0 | -| [random](#provider\_random) | >= 3.3.2, < 4.0.0 | +| [aws](#provider\_aws) | >= 4.8.0 | +| [random](#provider\_random) | >= 3.3.2 | ## Modules @@ -122,6 +122,7 @@ No modules. | [cluster\_mode\_enabled](#input\_cluster\_mode\_enabled) | Enable creation of a native redis cluster. | `bool` | `false` | no | | [data\_tiering\_enabled](#input\_data\_tiering\_enabled) | Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. | `bool` | `false` | no | | [description](#input\_description) | The description of the all resources. | `string` | `"Managed by Terraform"` | no | +| [egress\_cidr\_blocks](#input\_egress\_cidr\_blocks) | List of Egress CIDR blocks. | `list(string)` |
[
"0.0.0.0/0"
]
| no | | [engine\_version](#input\_engine\_version) | The version number of the cache engine to be used for the cache clusters in this replication group. | `string` | `"6.x"` | no | | [family](#input\_family) | The family of the ElastiCache parameter group. | `string` | `"redis6.x"` | no | | [final\_snapshot\_identifier](#input\_final\_snapshot\_identifier) | The name of your final node group (shard) snapshot. ElastiCache creates the snapshot from the primary node in the cluster. If omitted, no final snapshot will be made. | `string` | `null` | no | @@ -131,7 +132,7 @@ No modules. | [kms\_key\_id](#input\_kms\_key\_id) | The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if `at_rest_encryption_enabled = true` | `string` | `""` | no | | [log\_delivery\_configuration](#input\_log\_delivery\_configuration) | Log Delivery configuration for the cluster. |
list(object({
destination_type = string
destination = string
log_format = string
log_type = string
}))
| `[]` | no | | [maintenance\_window](#input\_maintenance\_window) | Specifies the weekly time range for when maintenance on the cache cluster is performed. | `string` | `""` | no | -| [multi\_az\_enabled](#input\_multi\_az\_enabled) | Specifies whether to enable Multi-AZ Support for the replication group. If true, `automatic_failover_enabled` must also be enabled. Defaults to false. | `string` | `false` | no | +| [multi\_az\_enabled](#input\_multi\_az\_enabled) | Specifies whether to enable Multi-AZ Support for the replication group. If true, `automatic_failover_enabled` must also be enabled. Defaults to false. | `bool` | `false` | no | | [name\_prefix](#input\_name\_prefix) | The replication group identifier. This parameter is stored as a lowercase string. | `string` | n/a | yes | | [node\_type](#input\_node\_type) | The compute and memory capacity of the nodes in the node group. | `string` | n/a | yes | | [notification\_topic\_arn](#input\_notification\_topic\_arn) | An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example: `arn:aws:sns:us-east-1:012345678999:my_sns_topic` | `string` | `""` | no | @@ -147,7 +148,7 @@ No modules. | [subnet\_ids](#input\_subnet\_ids) | List of VPC Subnet IDs for the cache subnet group. | `list(string)` | n/a | yes | | [tags](#input\_tags) | A mapping of tags to assign to all resources. | `map(string)` | `{}` | no | | [transit\_encryption\_enabled](#input\_transit\_encryption\_enabled) | Whether to enable encryption in transit. | `bool` | `true` | no | -| [user\_group\_id](#input\_user\_group\_id) | User Group ID to associate with the replication group. | `list(string)` | n/a | no | +| [user\_group\_ids](#input\_user\_group\_ids) | User Group ID to associate with the replication group | `list(string)` | `null` | no | | [vpc\_id](#input\_vpc\_id) | VPC Id to associate with Redis ElastiCache. | `string` | n/a | yes | ## Outputs diff --git a/examples/redis-basic/main.tf b/examples/redis-basic/main.tf index 38053db..cb92532 100644 --- a/examples/redis-basic/main.tf +++ b/examples/redis-basic/main.tf @@ -2,9 +2,6 @@ provider "aws" { region = "eu-west-1" } -data "aws_caller_identity" "current" {} -data "aws_region" "current" {} - ##### # VPC and subnets ##### diff --git a/examples/redis-basic/versions.tf b/examples/redis-basic/versions.tf new file mode 100644 index 0000000..5a4699d --- /dev/null +++ b/examples/redis-basic/versions.tf @@ -0,0 +1,8 @@ +terraform { + required_version = ">= 1.0.11" + + required_providers { + aws = "~> 5.1" + random = "~> 3.3" + } +} diff --git a/examples/redis-clustered-mode/versions.tf b/examples/redis-clustered-mode/versions.tf new file mode 100644 index 0000000..5a4699d --- /dev/null +++ b/examples/redis-clustered-mode/versions.tf @@ -0,0 +1,8 @@ +terraform { + required_version = ">= 1.0.11" + + required_providers { + aws = "~> 5.1" + random = "~> 3.3" + } +} diff --git a/examples/redis-replication-group/versions.tf b/examples/redis-replication-group/versions.tf new file mode 100644 index 0000000..5a4699d --- /dev/null +++ b/examples/redis-replication-group/versions.tf @@ -0,0 +1,8 @@ +terraform { + required_version = ">= 1.0.11" + + required_providers { + aws = "~> 5.1" + random = "~> 3.3" + } +} diff --git a/versions.tf b/versions.tf index 8abb2a2..dbc13c6 100644 --- a/versions.tf +++ b/versions.tf @@ -2,7 +2,7 @@ terraform { required_version = ">= 1.0.11" required_providers { - aws = ">= 4.8.0, < 5.0.0" - random = ">= 3.3.2, < 4.0.0" + aws = ">= 4.8.0" + random = ">= 3.3.2" } }