Skip to content

Commit

Permalink
Merge pull request #57 from ACRC/webui
Browse files Browse the repository at this point in the history
Open ports ready for configuration UI
  • Loading branch information
milliams authored Mar 17, 2020
2 parents 9ded4db + 94cc54d commit e313404
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
7 changes: 1 addition & 6 deletions aws/compute.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ data "aws_ami" "centos7" {
values = ["x86_64"]
}

filter {
name = "root-device-type"
values = ["ebs"]
}

owners = ["aws-marketplace"]
owners = ["679593333241"]
}

resource "aws_instance" "mgmt" {
Expand Down
7 changes: 7 additions & 0 deletions aws/security-groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ resource "aws_security_group" "mgmt" {
cidr_blocks = ["0.0.0.0/0"]
}

ingress {
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}

ingress {
from_port = 3000
to_port = 3000
Expand Down
11 changes: 11 additions & 0 deletions google/networking.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,14 @@ resource "google_compute_firewall" "ssh" {
ports = ["22"]
}
}

resource "google_compute_firewall" "http" {
name = "http-to-mgmt"
network = google_compute_network.vpc_network.name
source_ranges = ["0.0.0.0/0"]
target_tags = ["mgmt"]
allow {
protocol = "tcp"
ports = ["80"]
}
}
10 changes: 10 additions & 0 deletions oracle/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,14 @@ resource "oci_core_security_list" "ClusterSecurityList" {
max = 3000
}
}
ingress_security_rules {
# Open port for HTTP
protocol = "6"
source = "0.0.0.0/0"

tcp_options {
min = 80
max = 80
}
}
}

0 comments on commit e313404

Please sign in to comment.