add jenkins ip for port 22

This commit is contained in:
Nana Janashia
2020-12-19 11:10:35 +01:00
parent c8b8509967
commit 7562eb4836
2 changed files with 4 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ resource "aws_default_security_group" "default-sg" {
from_port = 22 from_port = 22
to_port = 22 to_port = 22
protocol = "tcp" protocol = "tcp"
cidr_blocks = [var.my_ip] cidr_blocks = [var.my_ip, var.jenkins_ip]
} }
ingress { ingress {

View File

@@ -13,6 +13,9 @@ variable env_prefix {
variable my_ip { variable my_ip {
default = "212.124.154.110/32" default = "212.124.154.110/32"
} }
variable jenkins_ip {
default = "139.59.140.177/32"
}
variable instance_type { variable instance_type {
default = "t2.micro" default = "t2.micro"
} }