File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,30 +29,6 @@ resource "aws_security_group_rule" "secure_sgs" {
2929 security_group_id = " ${ aws_security_group . elasticsearch . id } "
3030}
3131
32- resource "aws_security_group_rule" "nonsecure_cidrs" {
33- count = " ${ length (var. ingress_allow_cidr_blocks ) > 0 ? 1 : 0 } "
34-
35- type = " ingress"
36- from_port = 80
37- to_port = 80
38- protocol = " TCP"
39- cidr_blocks = [" ${ var . ingress_allow_cidr_blocks } " ]
40-
41- security_group_id = " ${ aws_security_group . elasticsearch . id } "
42- }
43-
44- resource "aws_security_group_rule" "nonsecure_sgs" {
45- count = " ${ length (var. ingress_allow_security_groups )} "
46-
47- type = " ingress"
48- from_port = 80
49- to_port = 80
50- protocol = " tcp"
51- source_security_group_id = " ${ element (var. ingress_allow_security_groups , count. index )} "
52-
53- security_group_id = " ${ aws_security_group . elasticsearch . id } "
54- }
55-
5632resource "aws_security_group_rule" "egress_all" {
5733 type = " egress"
5834 from_port = 0
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ output "es_endpoint" {
33}
44
55output "es_arn" {
6- value = " ${ aws_elasticsearch_domain . es . arn } "
6+ value = " ${ aws_elasticsearch_domain . es . arn } "
77}
88
99output "es_domain_id" {
10- value = " ${ aws_elasticsearch_domain . es . domain_id } "
10+ value = " ${ aws_elasticsearch_domain . es . domain_id } "
1111}
1212
1313output "es_kibana_endpoint" {
14- value = " ${ aws_elasticsearch_domain . es . kibana_endpoint } "
14+ value = " ${ aws_elasticsearch_domain . es . kibana_endpoint } "
1515}
1616
1717output "es_availability_zones_ids" {
@@ -21,3 +21,7 @@ output "es_availability_zones_ids" {
2121output "es_vpc_ids" {
2222 value = " ${ aws_elasticsearch_domain . es . vpc_options . 0 . vpc_id } "
2323}
24+
25+ output "es_sg" {
26+ value = " ${ aws_security_group . elasticsearch . id } "
27+ }
You can’t perform that action at this time.
0 commit comments