Skip to content

Commit

Permalink
fixing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HuskyHacks committed Jan 23, 2023
1 parent 7b7093c commit 7e5a753
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 2 deletions.
82 changes: 82 additions & 0 deletions aws-lab/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions aws-lab/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "aws_internet_gateway" "lab_ig" {
resource "aws_subnet" "lab_public_subnet" {
vpc_id = aws_vpc.lab_vpc.id
cidr_block = "10.0.0.0/24"
availability_zone = "us-east-1a"
availability_zone = var.availability_zone
map_public_ip_on_launch = true

tags = {
Expand Down Expand Up @@ -178,7 +178,7 @@ resource "aws_security_group" "security_group_guacamole" {
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["${chomp(data.http.myip.body)}/32"]
cidr_blocks = ["${chomp(data.http.myip.response_body)}/32"]
}

egress {
Expand Down
5 changes: 5 additions & 0 deletions aws-lab/shared-variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ variable "region" {
default = "us-east-1"
}

variable "availability_zone" {
description = "The best AWS availability zone for your location"
default = "us-east-1a"
}

variable "enable_guacamole" {
description = "Whether to enable the Guacamole server for remote access to the instances (If enabled the FlareVM will have not Internet)"
default = true
Expand Down

0 comments on commit 7e5a753

Please sign in to comment.