8000 GitHub - BoazHalter/PERIMETER81
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

BoazHalter/PERIMETER81

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PERIMETER81

This repository contains a project focused on network security and infrastructure management, utilizing technologies such as Terraform, Docker, and Python.

Table of Contents

About

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.

Features

  • 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.

Getting Started

Prerequisites

  • Docker
  • Terraform
  • Terragrunt
  • AWS cli
  • Helm
  • AWS ECR

Installation on prem

  1. Clone the repository:

    bash
    git clone https://github.com/BoazHalter/PERIMETER81.git
    cd PERIMETER81
    
  2. Set up the Docker environment:

    docker build . --file Dockerfile --tag 329082085800.dkr.ecr.eu-central-1.amazonaws.com/echo-server:${{ github.run_id }}
    
  3. 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 }}
    
  4. Access the server: Open a web browser and go to http://localhost:8080.

  5. Push to ecr:

    docker push 329082085800.dkr.ecr.eu-central-1.amazonaws.com/echo-server:${{ github.run_id }}
    
  6. Initialize Terragrunt:

    cd terraform 
    terragrunt init 
    terragrunt plan 
    
  7. Apply Terraform configurations:

    terragrunt apply
    
  8. Update Kubectl configuration:

    aws eks update-kubeconfig  --name boaz-eks-VDpZSLdu
    
  9. Helm install application

    helm upgrade echo-server --install --set env.value="stagging" --set image.tag=${{ github.run_id }} ./echo-server
    

known issues:

  1. helm chart deployment is not part of the terraform installation.

  2. 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

image
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

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0