add jenkins ip for port 22
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user