Posts

Showing posts from 2024

Guide to Deploy Multiple WordPress Sites on EC2 with Podman

Image
Deploying Multiple WordPress Sites on EC2 Using Podman: Step-by-Step Guide Table of Contents Background Possible Architecture Setup EC2 and Podman Creating Configuration Files for WordPress and MySQL Creating Podman Compose File and Environment Variables Testing and installation of Wordpress Setting Up ACM (AWS Certificate Manager) Setting Up ALB (Application Load Balancer) Setting Up Security Group for the EC2 Conclusion and Summary 1. Background Podman is a lightweight, open-source container management tool that runs containers without a background daemon. Its efficiency and security make it ideal for deploying containerized applications on AWS EC2. It is especially good for small to medium-sized enterprises (SMEs) seeking a cost-effective solution. In this guide, I’ll use Podman to deploy multiple WordPress sites on an Ubuntu EC2 instance. Reasons to Use Podman...

Installing Code-server with EC2 and Podman (integrate with Cognito) (PART 2)

Image
Integrating Amazon Cognito User Pool with Code-Server on EC2 and Podman (PART 2) Table of Contents 1. Background 2. Proposed Solution: Integrating Amazon Cognito 3. Architecture Diagram 4. Create Cognito User Pool 5. Setup ALB 6. Testing of Setup 7. Other Useful AWS Services 8. Conclusion and Summary 1. Background In a previous article , I walked through the installation of code-server on an EC2 instance using Podman . While this setup is functional, it has some significant drawbacks when it comes to security: Single Password Authentication : The code-server relies on a single password stored in a configuration file. This is not a secure or scalable method to manage authentication. Lack of Multi-Factor Authentication (MFA) : The setup does not support MFA, increasing the risk of unauthorized access. Limited Security Controls : Advanced security features such as user ma...

Installing Code-Server with Podman on AWS EC2 (PART 1)

Image
Installing Code-Server with Podman on AWS EC2 This guide provides step-by-step instructions for installing and running code-server using Podman on an AWS EC2 Ubuntu instance. Code-server allows you to run VS Code on a remote server and access it through a browser. Table of Contents Background Why Podman? Possible Use Cases and Architecture Prerequisites Installation Steps Important Notes Testing Security Considerations Troubleshooting Conclusion and Summary Background Code-server is an open-source project that enables developers to run Visual Studio Code (VS Code) on a remote server. This setup is particularly useful for developers who want to access their development environment from anywhere, using just a browser. Podman is a container management tool that is gaining popularity. In this guide, we will walk you through the process of setting up code-server on an AW...