Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/elasticache-redis-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This module creates following resources.
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.30 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.36 |

## Providers

Expand Down
2 changes: 1 addition & 1 deletion modules/elasticache-redis-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ resource "aws_elasticache_replication_group" "this" {
subnet_group_name = var.subnet_group
preferred_cache_cluster_azs = var.preferred_availability_zones
security_group_ids = (var.default_security_group.enabled
? concat(module.security_group.*.id, var.security_groups)
? concat(module.security_group[*].id, var.security_groups)
: var.security_groups
)

Expand Down
2 changes: 1 addition & 1 deletion modules/elasticache-redis-cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ output "network" {
subnet_group = aws_elasticache_replication_group.this.subnet_group_name
preferred_availability_zones = aws_elasticache_replication_group.this.preferred_cache_cluster_azs

default_security_group = one(module.security_group.*.id)
default_security_group = one(module.security_group[*].id)
security_groups = aws_elasticache_replication_group.this.security_group_ids
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/elasticache-redis-cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.30"
version = ">= 4.36"
}
}
}
2 changes: 1 addition & 1 deletion modules/elasticache-redis-user/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This module creates following resources.
|------|-------------|------|---------|:--------:|
| <a name="input_id"></a> [id](#input\_id) | (Required) The ID of the ElastiCache user. | `string` | n/a | yes |
| <a name="input_name"></a> [name](#input\_name) | (Required) The username of the ElastiCache user. It can have up to 40 characters, and must begin with a letter. It should not end with a hyphen or contain two consecutive hyphens. Valid characters: A-Z, a-z, 0-9, and - (hyphen). | `string` | n/a | yes |
| <a name="input_access_string"></a> [access\_string](#input\_access\_string) | (Optional) Access permissions string used for this user. | `string` | `""` | no |
| <a name="input_access_string"></a> [access\_string](#input\_access\_string) | (Optional) Access permissions string used for this user. Defaults to `off -@all`. | `string` | `"off -@all"` | no |
| <a name="input_module_tags_enabled"></a> [module\_tags\_enabled](#input\_module\_tags\_enabled) | (Optional) Whether to create AWS Resource Tags for the module informations. | `bool` | `true` | no |
| <a name="input_password_required"></a> [password\_required](#input\_password\_required) | (Optional) Whether a password is required for this user. Defaults to `false`. | `bool` | `false` | no |
| <a name="input_passwords"></a> [passwords](#input\_passwords) | (Optional) A set of passwords used for this user. You can create up to two passwords for each user. | `set(string)` | `[]` | no |
Expand Down
4 changes: 2 additions & 2 deletions modules/elasticache-redis-user/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ variable "name" {

# INFO: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html#Access-string
variable "access_string" {
description = "(Optional) Access permissions string used for this user."
description = "(Optional) Access permissions string used for this user. Defaults to `off -@all`."
type = string
default = ""
default = "off -@all"
nullable = false
}

Expand Down