From bf30cebf3f5e7fc6f33597b1117662d898c97f13 Mon Sep 17 00:00:00 2001 From: Owen-Choh <94509487+Owen-Choh@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:05:41 +0800 Subject: [PATCH] update readme and remove bastion host (#35) --- SSG-API-Testing-Application-v2/README.md | 2 +- .../main-infrastructure/security-groups.tf | 25 ------------------- .../deploy/dev/main-infrastructure/ssh.tf | 13 ---------- .../main-infrastructure/security-groups.tf | 25 ------------------- .../deploy/prod/main-infrastructure/ssh.tf | 13 ---------- 5 files changed, 1 insertion(+), 77 deletions(-) delete mode 100644 SSG-API-Testing-Application-v2/deploy/dev/main-infrastructure/ssh.tf delete mode 100644 SSG-API-Testing-Application-v2/deploy/prod/main-infrastructure/ssh.tf diff --git a/SSG-API-Testing-Application-v2/README.md b/SSG-API-Testing-Application-v2/README.md index eef418c..0fc9c6c 100644 --- a/SSG-API-Testing-Application-v2/README.md +++ b/SSG-API-Testing-Application-v2/README.md @@ -102,7 +102,7 @@ pip install -r requirements.txt ## Usage -First, open up a command prompt or terminal at the same location as this `README.md` document. +First, open up a command prompt or terminal at the same location as `Home.py` in the `\app` folder. If you are using `conda`, make sure to activate the environment which you have installed the required Python libraries in. diff --git a/SSG-API-Testing-Application-v2/deploy/dev/main-infrastructure/security-groups.tf b/SSG-API-Testing-Application-v2/deploy/dev/main-infrastructure/security-groups.tf index c41d58c..66f8571 100644 --- a/SSG-API-Testing-Application-v2/deploy/dev/main-infrastructure/security-groups.tf +++ b/SSG-API-Testing-Application-v2/deploy/dev/main-infrastructure/security-groups.tf @@ -53,29 +53,4 @@ resource "aws_security_group" "alb" { tags = { Name = "${module.constants.namespace}-application-load-balancer-sg" } -} - -# Create Bastion Host SG -resource "aws_security_group" "bastion_host" { - name = "${module.constants.namespace}-bastion-host-sg" - description = "Security group for Bastion Host" - vpc_id = aws_vpc.default.id - - ingress { - from_port = 22 - to_port = 22 - protocol = "tcp" - cidr_blocks = [module.constants.broadcast_ipv4] - } - - egress { - from_port = 0 - to_port = 0 - protocol = "-1" - cidr_blocks = [module.constants.broadcast_ipv4] - } - - tags = { - Name = "${module.constants.namespace}-bastion-host-sg" - } } \ No newline at end of file diff --git a/SSG-API-Testing-Application-v2/deploy/dev/main-infrastructure/ssh.tf b/SSG-API-Testing-Application-v2/deploy/dev/main-infrastructure/ssh.tf deleted file mode 100644 index fd01fd5..0000000 --- a/SSG-API-Testing-Application-v2/deploy/dev/main-infrastructure/ssh.tf +++ /dev/null @@ -1,13 +0,0 @@ -# Create Bastion Host -resource "aws_instance" "bastion_host" { - ami = data.aws_ami.am2.id - instance_type = module.constants.bastion_host_instance_type - subnet_id = aws_subnet.public[0].id - associate_public_ip_address = true - key_name = aws_key_pair.default.id - vpc_security_group_ids = [aws_security_group.bastion_host.id] - - tags = { - Name = "${module.constants.namespace}-ec2-bastion-host" - } -} diff --git a/SSG-API-Testing-Application-v2/deploy/prod/main-infrastructure/security-groups.tf b/SSG-API-Testing-Application-v2/deploy/prod/main-infrastructure/security-groups.tf index c41d58c..66f8571 100644 --- a/SSG-API-Testing-Application-v2/deploy/prod/main-infrastructure/security-groups.tf +++ b/SSG-API-Testing-Application-v2/deploy/prod/main-infrastructure/security-groups.tf @@ -53,29 +53,4 @@ resource "aws_security_group" "alb" { tags = { Name = "${module.constants.namespace}-application-load-balancer-sg" } -} - -# Create Bastion Host SG -resource "aws_security_group" "bastion_host" { - name = "${module.constants.namespace}-bastion-host-sg" - description = "Security group for Bastion Host" - vpc_id = aws_vpc.default.id - - ingress { - from_port = 22 - to_port = 22 - protocol = "tcp" - cidr_blocks = [module.constants.broadcast_ipv4] - } - - egress { - from_port = 0 - to_port = 0 - protocol = "-1" - cidr_blocks = [module.constants.broadcast_ipv4] - } - - tags = { - Name = "${module.constants.namespace}-bastion-host-sg" - } } \ No newline at end of file diff --git a/SSG-API-Testing-Application-v2/deploy/prod/main-infrastructure/ssh.tf b/SSG-API-Testing-Application-v2/deploy/prod/main-infrastructure/ssh.tf deleted file mode 100644 index fd01fd5..0000000 --- a/SSG-API-Testing-Application-v2/deploy/prod/main-infrastructure/ssh.tf +++ /dev/null @@ -1,13 +0,0 @@ -# Create Bastion Host -resource "aws_instance" "bastion_host" { - ami = data.aws_ami.am2.id - instance_type = module.constants.bastion_host_instance_type - subnet_id = aws_subnet.public[0].id - associate_public_ip_address = true - key_name = aws_key_pair.default.id - vpc_security_group_ids = [aws_security_group.bastion_host.id] - - tags = { - Name = "${module.constants.namespace}-ec2-bastion-host" - } -}