This repository contains a project focused on network security and infrastructure management, utilizing technologies such as Terraform, Docker, and Python.
This repo is designed to help manage and secure network infrastructure effectively. It leverages Terraform for infrastructure as code (IaC), Docker for containerization, and Python for server-side scripting.
- Infrastructure as Code (IaC): Manage infrastructure using Terraform.
- Containerization: Utilize Docker for deploying applications in isolated environments.
- Python Server: A Python-based server to handle requests and manage network operations.
- HTML: A index.html to deliver a web page content.
- Helm: A helm chart for deploying Kubernetes applications.
- Docker
- Terraform
- Terragrunt
- AWS cli
- Helm
- AWS ECR
-
Clone the repository:
bash git clone https://github.com/BoazHalter/PERIMETER81.git cd PERIMETER81
-
Set up the Docker environment:
docker build . --file Dockerfile --tag 329082085800.dkr.ecr.eu-central-1.amazonaws.com/echo-server:${{ github.run_id }}
-
UsageStart the Docker container:
docker run -d -p 8080:8080 -e ECHO_MESSAGE="Hello from Staging" -e ENVIRONMENT=staging 329082085800.dkr.ecr.eu-central-1.amazonaws.com/echo-server:${{ github.run_id }}
-
Access the server: Open a web browser and go to http://localhost:8080.
-
Push to ecr:
docker push 329082085800.dkr.ecr.eu-central-1.amazonaws.com/echo-server:${{ github.run_id }}
-
Initialize Terragrunt:
cd terraform terragrunt init terragrunt plan
-
Apply Terraform configurations:
terragrunt apply
-
Update Kubectl configuration:
aws eks update-kubeconfig --name boaz-eks-VDpZSLdu
-
Helm install application
helm upgrade echo-server --install --set env.value="stagging" --set image.tag=${{ github.run_id }} ./echo-server
-
helm chart deployment is not part of the terraform installation.
-
Some features of the html are not working in regular chrome browser.
Open chrome incognito.
Browse to:
chrome://flags/#unsafely-treat-insecure-origin-as-secure
update:
http://a022f0fe0d6da4233a50d03ae09d8bd5-1555814403.eu-central-1.elb.amazonaws.com:8080
relaunch chrome chrome may generate a message regarding the use of unsupported flag
http://a022f0fe0d6da4233a50d03ae09d8bd5-1555814403.eu-central-1.elb.amazonaws.com:8080/index.html
chrome://flags/#unsafely-treat-insecure-origin-as-secure