Posts

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

Creating Spring Boot MVC application with AWS DynamoDB in 10 mins

Image
Building a Spring Boot MVC Web App with DynamoDB for a Game Leaderboard In this article, we’ll walk through the process of building a Spring Boot MVC web application that interacts with an Amazon DynamoDB table to display a game leaderboard. The application will allow users to view top scores for specific games, retrieve scores for individual users, and display all scores for a particular user. We’ll also explore how to use the AWS SDK for Java to interact with DynamoDB. Prerequisites Before diving into the Spring Boot project, ensure the following prerequisites are met: DynamoDB Table Setup : Create a DynamoDB table named leaderboard with the following schema: Partition Key: user_id Sort Key: sk Global Secondary Index (GSI): sk-top_score_index with sk as the partition key and top_score as the sort key. AWS CLI Configuration : Configure the AWS CLI to connect to your AWS account. This setup is necessary...

AWS DynamoDB Scan and Query (with hands-on demo)

Image
There are two types of read operation in DynamoDB. You can know the difference between them in this video.  Source of the demo code: https://github.com/babysteps-topro/DynamoDBQueryScan.git Prerequisite: Install the AWS CLI: https://youtu.be/pE-Q_4YXlR0 Video explain the table design: https://youtu.be/V0GtrBfY7XM

AWS DynamoDB Table Design in 10 mins

Image
AWS DynamoDB is a serverless, key and value pair NOSQL database. The schema design concept is different from traditional relational database. You can understand the DynamoDB table design within 10 minutes in this video. 

AWS CLI (command line Interface) in 3mins

Image
The AWS Command Line Interface (CLI) is a tool to manage with your AWS services. This video shows you how to install, configure and run some S3 command to interact with S3 bucket.