-
Notifications
You must be signed in to change notification settings - Fork 0
/
glue_connection.tf
35 lines (28 loc) · 916 Bytes
/
glue_connection.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
resource "aws_glue_connection" "glue_connection" {
connection_type = "NETWORK"
name = format("%s-glue-connection", var.project_name)
physical_connection_requirements {
availability_zone = aws_subnet.public_subnet_1a.availability_zone
security_group_id_list = [aws_security_group.glue_connection.id]
subnet_id = aws_subnet.public_subnet_1a.id
}
}
resource "aws_security_group" "glue_connection" {
name = format("%s-glue-connection", var.project_name)
description = var.project_name
vpc_id = aws_vpc.main.id
ingress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}
}