Posts

Showing posts from November, 2022

Developing and hosting web applications on AWS Elastic Bean Stalk

Image
In this blogpost, we are gonna look at how to d evelop and host web applications on AWS Elastic Bean Stalk. Step 1:  Search for Elastic Bean Stalk Step 2: Click on "Create Application" Step 3:  Choose a platform based on the application deployed. If deploying a Java application, select Java; if deploying an angular application, select Node.js, etc.  I'll be choosing Python in my case. Step 4: Select “Upload your code” inside the Application code section or you can go for the sample application.  If you going to upload your own source application, then i nside the Source code origin section, there are two options, Local file -> upload from your local computer (jar/war) Public S3 URL -> provide the S3 bucket URL where you have uploaded the artifact. Step 5:  Then click on "Create Application".  Your application is created.

Carrying out R/W Operations on AWS DynamoDB

Image
 In this blogpost, I'll be showing you how to create tables, add records and carry out read and write operations on AWS DynamoDB. Step 1: Search for DynamoDB in AWS and click on it. Step 2: Then click on "Create Table". Step 3: Then create a table by giving the appropriate details and then click on "Create table"                                      Step 4: Then select the table > Actions > Explore items and then click on "Create item" Step 5: Then we can add records to the tables like this by clicking on "Add New Attribute" and then "Create Item".   Step 6: Like that, you can add multiple records and have your DynamoDB up and running.

Installing SQL Server on an EC2 instance

Image
 In this blogpost, let me show you how to install SQL Server on an EC2 instance. Before hand, I've created an EC2 instance called "SQLServer1" to demonstrate how to install it. Step 1: Run the command "sudo yum install -y mariadb-server " to install the MySQL daemon. Step 2: Run the command "sudo systemctl start mariadb " to start the MySQL server. Step 3: Next, we need to secure the installation by running the command "sudo mysql_secure_installation". It'll ask you to set a root password , set one and answer all the other question by just giving "Y" Step 4: After that, you can connect to your MySQL server by running the command "mysql -u root -p". It'd prompt you for the root password. Then, you will be on the MySQL shell where you'd execute SQL commands. Step 5: Type in "show databases" to look at the databases that are there. Step 6: Let's try creating a database called NewDB by typing in ...

Hosting a Static Website on Amazon S3

Image
In this blogpost, I'll be showing how to host a static website on the cloud using Amazon's S3 Storage service. Step 1: Search for S3 in the search bar or just click on S3 in the "Recently Visited" block. Step 2: Click on "Create a Bucket"  In Amazon S3 terms, we store our stuff, whatever it might be, a webpage, an image .. everything is considered as an "object" and these objects get stored in "buckets". The "object" have their own "key" which is nothing but the unique Amazon S3 URL of the "object" itself. Step 3: Now here, give a name for your S3 bucket and select your nearest region. Step 4:  For this, just untick  "Block all public access" and tick that acknowledgement thing too. Step 5: Once you've successfully created the S3 bucket. Click on the S3 bucket name and go to the Properties tab. Then, look for static website hosting  and then click on "Edit". Then click on "Save Ch...

Creating an Application Load Balancer for a VPC

Image
 In this blogpost, we'll see how to create a application load balancer for a VPC. Step 1: Create a new VPC. Step 2: We create four new subnets "Private Subnet A", "Private Subnet B", "Public Subnet A", "Public Subnet B".  Step 3: We create two HTTP server EC2 instances "HTTPServerOne" , "HTTPServerTwo" in subnets "PublicSubnetA" and "PublicSubnetB" respectively. Note: While creating the instances, you'd have to security group with rules like this! Step 4: Connect to the instances and run the following commands and this would open the text editor. In there, type in your HTML code and close it.  Finally, you should be able to write your processed HTML code when you access the EC2 instance by its public address. Step 5: Now, let's create an Application Load Balancer (ALB). To do that, search for "Load Balancers". Click on it. Then click on "Create Load Balancer" and choose Appli...

Creating a VPC

Image
So, first you gotta know what's a VPC. VPC stands for Virtual Private Cloud and it allows you to pretty much isolate your resources in the cloud environment and also configure the inbound/outbound connections .... everything that you'd do when you set up a physical server. In this blogpost, we will be looking at how to create a VPC. This is how our architecture is gonna be! Step 1: In the left pane, scroll down or search for "VPC" in the search bar.  Then, you will see we have no VPC's created (Note: If you already have created EC2 instances, then you might find some VPCs in there. But in this blogpost, we'll be doing from ground up, so yeah :D) Step 2: Click on "Create VPC" Step 3: Give your VPC a name and the IPv4 CIDR address block and let the other settings remain as they are, and then click on "Create VPC" Then you would have VPC created in no time and you can find your newly created VPC in the "Your VPCs" list. Step 5: Click...