File tree 4 files changed +13
-15
lines changed
4 files changed +13
-15
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.0.0
2
+
3
+ - Break backward compatibility by removing the default security group rules
4
+ that open ` 6379 ` to the VPC CIDR range. Module consumers and add their own
5
+ rules via the ` security_group_rule ` resource.
6
+ - Add ` cache_security_group_id ` as a module output.
7
+
1
8
## 0.3.0
2
9
3
10
- Add cache name to alarm names so multiple instances do not conflict within
4
11
the same AWS account.
5
- - Apply hclfmt.
12
+ - Apply ` hclfmt ` .
6
13
7
14
## 0.2.0
8
15
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ module "redis_elasticache" {
36
36
37
37
## Outputs
38
38
39
+ - ` cache_security_group_id ` - Security group ID of the cache cluster
39
40
- ` hostname ` - Public DNS name of cache node
40
41
- ` port ` - Port of cache instance
41
42
- ` endpoint ` - Public DNS name and port separated by a ` : `
Original file line number Diff line number Diff line change 5
5
resource "aws_security_group" "redis" {
6
6
vpc_id = " ${ var . vpc_id } "
7
7
8
- ingress {
9
- from_port = 6379
10
- to_port = 6379
11
- protocol = " tcp"
12
- cidr_blocks = [" ${ var . vpc_cidr_block } " ]
13
- }
14
-
15
- egress {
16
- from_port = 6379
17
- to_port = 6379
18
- protocol = " tcp"
19
- cidr_blocks = [" ${ var . vpc_cidr_block } " ]
20
- }
21
-
22
8
tags {
23
9
Name = " sgCacheCluster"
24
10
}
Original file line number Diff line number Diff line change
1
+ output "cache_security_group_id" {
2
+ value = " ${ aws_security_group . redis . id } "
3
+ }
4
+
1
5
output "hostname" {
2
6
value = " ${ aws_elasticache_cluster . redis . cache_nodes . 0 . address } "
3
7
}
You can’t perform that action at this time.
0 commit comments