Skip to content

Commit 979ca49

Browse files
author
Hector Castro
committed
Merge branch 'release/1.0.0'
2 parents 9b1c6f0 + 1da1d28 commit 979ca49

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
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+
18
## 0.3.0
29

310
- Add cache name to alarm names so multiple instances do not conflict within
411
the same AWS account.
5-
- Apply hclfmt.
12+
- Apply `hclfmt`.
613

714
## 0.2.0
815

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module "redis_elasticache" {
3636

3737
## Outputs
3838

39+
- `cache_security_group_id` - Security group ID of the cache cluster
3940
- `hostname` - Public DNS name of cache node
4041
- `port` - Port of cache instance
4142
- `endpoint` - Public DNS name and port separated by a `:`

main.tf

-14
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@
55
resource "aws_security_group" "redis" {
66
vpc_id = "${var.vpc_id}"
77

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-
228
tags {
239
Name = "sgCacheCluster"
2410
}

outputs.tf

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
output "cache_security_group_id" {
2+
value = "${aws_security_group.redis.id}"
3+
}
4+
15
output "hostname" {
26
value = "${aws_elasticache_cluster.redis.cache_nodes.0.address}"
37
}

0 commit comments

Comments
 (0)