generated from opszero/terraform-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
30 lines (25 loc) · 750 Bytes
/
main.tf
File metadata and controls
30 lines (25 loc) · 750 Bytes
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
data "github_ip_ranges" "action" {}
resource "aws_security_group" "github" {
name = "github_meta_actions_ingress"
description = "Allow TLS inbound traffic"
vpc_id = var.vpc_id
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}
tags = {
Name = "github-meta-actions"
}
}
resource "aws_security_group_rule" "github" {
type = "ingress"
from_port = 0
to_port = 65535
protocol = "tcp"
cidr_blocks = data.github_ip_ranges.action.actions_ipv4
ipv6_cidr_blocks = data.github_ip_ranges.action.actions_ipv6
security_group_id = aws_security_group.github.id
}