<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>InfraHub - AWS Knowledge</title>
  <link
    rel="stylesheet"
    href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
  />
  <link rel="stylesheet" href="{{ url_for('pages.serve_css', filename='retro.css') }}">
</head>
<body>
  <!-- ===== HEADER ===== -->
  <header>
    <div class="header-inner">
      <div class="left">
        <img src="{{ url_for('pages.serve_png', filename='infrahublogo.png') }}" alt="InfraHub Logo" class="logo">
      </div>
      <nav>
        <ul class="navbar">
            <li><a href="{{ url_for('pages.index') }}"><i class="fa fa-house"></i> Home</a></li>
            <li><a href="{{ url_for('pages.isos') }}"><i class="fa fa-compact-disc"></i> ISOs</a></li>
            <li><a href="{{ url_for('pages.playbooks') }}"><i class="fa fa-scroll"></i> Playbooks</a></li>
            <li><a href="{{ url_for('pages.docker') }}"><i class="fab fa-docker"></i>Docker Sandbox</a></li>
            <li><a href="{{ url_for('pages.aws') }}"><i class="fab fa-aws"></i>AWS Guide</a></li>
            <li><a href="https://github.com/AJprogramming123/OpsCenter" target="_blank"><i class="fab fa-github"></i> GitHub</a></li>
        </ul>
      </nav>
    </div>
  </header>

  <!-- ===== MAIN CONTENT ===== -->
  <main>
    <div class="container">
      <!-- ===== INTRODUCTION ===== -->
      <hr class="divider">

      <section class="about">
        <h2>AWS Knowledge Hub</h2>
        <p>
          This section consolidates InfraHub's AWS architecture, best practices, and lessons learned while building highly available, fault-tolerant infrastructure. Ideal for IT administrators who want to understand scalable AWS deployments, automation, and security configurations.
        </p>
        <p>
          Note: this entire website "InfraHub" was built from these AWS concepts, including S3 backend hosting, multi-CDN architecture with Route 53 failover, and secure EC2 deployments.
        </p>
      </section>

      <hr class="divider">

      <section class="sections">
        <h2>Core Topics</h2>
        <div class="cards">
          <div class="card">
              <h3>1. Multi-CDN Architecture</h3>
              <p>Learn how CloudFront and Fastly work together with Route 53 for automatic failover.</p>
              <a href="{{ url_for('pages.multi_cdn') }}" class="btn">Learn More</a>
          </div>

          <div class="card">
              <h3>2. S3 & Backend Integration</h3>
              <p>Explore dynamic content delivery from S3 using boto3, streamed responses, and stateless containers.</p>
              <a href="{{ url_for('pages.s3_backend') }}" class="btn">Learn More</a>
          </div>

          <div class="card">
              <h3>3. Security & Privacy</h3>
              <p>Study header validation, NGINX protections, CloudFront/Fastly TLS termination, and secure AWS access.</p>
              <a href="{{ url_for('pages.security') }}" class="btn">Learn More</a>
          </div>
        </div>

        <hr class="divider">

        <section class="details">
          <h2>Detailed Documentation</h2>
          <p>
            InfraHub’s AWS knowledge section includes everything from architecture diagrams, S3 and EC2 workflows, health checks, CI/CD pipelines, and failover strategies. Each topic is written in an accessible way for IT admins and developers to replicate and learn from the infrastructure.
          </p>
          <ul>
            <li>Route 53 automatic failover between CDNs</li>
            <li>CloudFront origins with S3 health pages</li>
            <li>Security best practices for public-facing EC2s</li>
          </ul>

              <div class="card">
                <h2 style="text-align: center;">Example of Multi-DNS Fault Tolerant setup</h2>

                <div class="video-container" style="margin-top: 1rem;">
                  <iframe
                    src="https://www.youtube.com/embed/qnawmYbv_xY"
                    frameborder="0"
                    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
                    allowfullscreen>
                  </iframe>
                </div>
              </div>

        </section>
      </section>
      
    </div>
  </main>

  <!-- ===== FOOTER ===== -->
  <footer>
    <p>© 2025 InfraHub — Designed for Learning and Deployment</p>
  </footer>
</body>
</html>
