Skip to content

Commit ab211a3

Browse files
committed
Rename ingress_cidr_blocks to source_cidr_blocks
1 parent 8faa60d commit ab211a3

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module "elasticache_redis" {
3535
3636
subnet_ids = var.subnet_ids
3737
vpc_id = var.vpc_id
38-
ingress_cidr_blocks = var.ingress_cidr_blocks
38+
source_cidr_blocks = var.source_cidr_blocks
3939
}
4040
```
4141

@@ -62,7 +62,7 @@ module "elasticache_redis" {
6262
6363
subnet_ids = var.subnet_ids
6464
vpc_id = var.vpc_id
65-
ingress_cidr_blocks = var.ingress_cidr_blocks
65+
source_cidr_blocks = var.source_cidr_blocks
6666
6767
tags = {
6868
Environment = "prod"
@@ -93,10 +93,10 @@ module "elasticache_redis" {
9393

9494
| Name | Description | Type | Default | Required |
9595
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -------------- | ------------------------ | :------: |
96-
| ingress_cidr_blocks | List of Ingress CIDR blocks. | `list(string)` | n/a | yes |
9796
| name | The replication group identifier. This parameter is stored as a lowercase string. | `string` | n/a | yes |
9897
| node_type | The compute and memory capacity of the nodes in the node group. | `string` | n/a | yes |
9998
| number_cache_clusters | The number of cache clusters (primary and replicas) this replication group will have. | `string` | n/a | yes |
99+
| source_cidr_blocks | List of source CIDR blocks. | `list(string)` | n/a | yes |
100100
| subnet_ids | List of VPC Subnet IDs for the cache subnet group. | `list(string)` | n/a | yes |
101101
| vpc_id | VPC Id to associate with Redis ElastiCache. | `string` | n/a | yes |
102102
| apply_immediately | Specifies whether any modifications are applied immediately, or during the next maintenance window. | `bool` | `false` | no |

examples/complete/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module "elasticache_redis" {
1818

1919
subnet_ids = module.vpc.public_subnet_ids
2020
vpc_id = module.vpc.vpc_id
21-
ingress_cidr_blocks = [module.vpc.vpc_cidr_block]
21+
source_cidr_blocks = [module.vpc.vpc_cidr_block]
2222

2323
tags = {
2424
Environment = "prod"

examples/minimal/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module "elasticache_redis" {
66

77
subnet_ids = module.vpc.public_subnet_ids
88
vpc_id = module.vpc.vpc_id
9-
ingress_cidr_blocks = [module.vpc.vpc_cidr_block]
9+
source_cidr_blocks = [module.vpc.vpc_cidr_block]
1010
}
1111

1212
module "vpc" {

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ resource "aws_security_group_rule" "ingress" {
123123
from_port = var.port
124124
to_port = var.port
125125
protocol = "tcp"
126-
cidr_blocks = var.ingress_cidr_blocks
126+
cidr_blocks = var.source_cidr_blocks
127127
security_group_id = aws_security_group.default.id
128128
}
129129

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ variable "vpc_id" {
2323
description = "VPC Id to associate with Redis ElastiCache."
2424
}
2525

26-
variable "ingress_cidr_blocks" {
26+
variable "source_cidr_blocks" {
2727
type = list(string)
28-
description = "List of Ingress CIDR blocks."
28+
description = "List of source CIDR blocks."
2929
}
3030

3131
variable "engine_version" {

0 commit comments

Comments
 (0)