Skip to content

Commit 487463d

Browse files
authored
Fix tflint failed code (#12)
1 parent 8615d6d commit 487463d

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

modules/elasticache-redis-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This module creates following resources.
1313
| Name | Version |
1414
|------|---------|
1515
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
16-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.30 |
16+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.36 |
1717

1818
## Providers
1919

modules/elasticache-redis-cluster/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ resource "aws_elasticache_replication_group" "this" {
106106
subnet_group_name = var.subnet_group
107107
preferred_cache_cluster_azs = var.preferred_availability_zones
108108
security_group_ids = (var.default_security_group.enabled
109-
? concat(module.security_group.*.id, var.security_groups)
109+
? concat(module.security_group[*].id, var.security_groups)
110110
: var.security_groups
111111
)
112112

modules/elasticache-redis-cluster/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ output "network" {
6565
subnet_group = aws_elasticache_replication_group.this.subnet_group_name
6666
preferred_availability_zones = aws_elasticache_replication_group.this.preferred_cache_cluster_azs
6767

68-
default_security_group = one(module.security_group.*.id)
68+
default_security_group = one(module.security_group[*].id)
6969
security_groups = aws_elasticache_replication_group.this.security_group_ids
7070
}
7171
}

modules/elasticache-redis-cluster/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 4.30"
7+
version = ">= 4.36"
88
}
99
}
1010
}

modules/elasticache-redis-user/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This module creates following resources.
3636
|------|-------------|------|---------|:--------:|
3737
| <a name="input_id"></a> [id](#input\_id) | (Required) The ID of the ElastiCache user. | `string` | n/a | yes |
3838
| <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 |
39-
| <a name="input_access_string"></a> [access\_string](#input\_access\_string) | (Optional) Access permissions string used for this user. | `string` | `""` | no |
39+
| <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 |
4040
| <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 |
4141
| <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 |
4242
| <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 |

modules/elasticache-redis-user/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ variable "name" {
1212

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

0 commit comments

Comments
 (0)