Skip to content

Commit cf5ad1b

Browse files
committed
Moved the security group definition to a separate file.
1 parent 981a657 commit cf5ad1b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Terraform/deploy-fsx-ontap/standalone-module/security_groups.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,16 @@ resource "aws_vpc_security_group_ingress_rule" "ssh" {
241241
ip_protocol = "tcp"
242242
}
243243

244+
resource "aws_vpc_security_group_ingress_rule" "s3_and_api" {
245+
security_group_id = aws_security_group.fsx_sg.id
246+
description = "Provice acccess to S3 and the ONTAP REST API"
247+
cidr_ipv4 = (local.ciddr_block != "" ? local.ciddr_block : null)
248+
referenced_security_group_id = (local.security_group_id != "" ? local.security_group_id : null)
249+
from_port = 443
250+
to_port = 443
251+
ip_protocol = "tcp"
252+
}
253+
244254
resource "aws_vpc_security_group_egress_rule" "allow_all_traffic" {
245255
security_group_id = aws_security_group.fsx_sg.id
246256
cidr_ipv4 = "0.0.0.0/0" // Allow all output traffic.

0 commit comments

Comments
 (0)