Skip to content

Commit 10c5dba

Browse files
authored
Merge pull request tmknom#16 from tmknom/rename-to-source-cidr-blocks
Rename ingress_cidr_blocks to source_cidr_blocks
2 parents 8faa60d + 8ebedc7 commit 10c5dba

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ module "elasticache_redis" {
3333
number_cache_clusters = 2
3434
node_type = "cache.m3.medium"
3535
36-
subnet_ids = var.subnet_ids
37-
vpc_id = var.vpc_id
38-
ingress_cidr_blocks = var.ingress_cidr_blocks
36+
subnet_ids = var.subnet_ids
37+
vpc_id = var.vpc_id
38+
source_cidr_blocks = var.source_cidr_blocks
3939
}
4040
```
4141

@@ -60,9 +60,9 @@ module "elasticache_redis" {
6060
family = "redis5.0"
6161
description = "This is example"
6262
63-
subnet_ids = var.subnet_ids
64-
vpc_id = var.vpc_id
65-
ingress_cidr_blocks = var.ingress_cidr_blocks
63+
subnet_ids = var.subnet_ids
64+
vpc_id = var.vpc_id
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

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ module "elasticache_redis" {
1616
family = "redis5.0"
1717
description = "This is example"
1818

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

2323
tags = {
2424
Environment = "prod"

examples/minimal/main.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ module "elasticache_redis" {
44
number_cache_clusters = 2
55
node_type = "cache.m3.medium"
66

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

1212
module "vpc" {

main.tf

+1-1
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

+2-2
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)