Posts

Showing posts from 2019

Transferring an EC2 Instance to Another AWS Account: A Step-by-Step Guide

Image
To move an existing EC2 instance from one AWS account to another, follow the steps mentioned below. Step 1: Log in to the AWS account where the EC2 instance is running, and ensure that you select the appropriate region in the upper right corner where the instance is located. Step 2: Select the instance that needs to be transferred to the other account from the list. To create an image of this instance   Click on 'Actions'  Select 'Image' from the dropdown And then choose 'Create Image' from the submenu. Step 3: A 'Create Image' pop-up will appear. Provide the required details such as the image name and description, and then click on the 'Create Image' button. Step 4: From the side menu, click on 'AMIs' and wait until the image is created. Usually, this process takes around 2-10 minutes. Step 5:  Meanwhile, log in to the other AWS account (you can use a private or separate browser window) ...

Deploying Angular 7 Application with Apache on Amazon EC2 Ubuntu Server: A Step-by-Step Guide

Deploying Angular 7 Application with Apache on Amazon EC2 Ubuntu Server. Prerequisites to Install Install Node Package Manager sudo apt install npm Install Nodejs sudo apt install nodejs Install the Angular CLI sudo npm install -g @angular/cli Install Apache sudo apt-get install apache2 After successful installation. Follow the below steps Clone the complete project repository on the server. Install the dependencies using sudo npm install To deploy, start the production build using ng build --prod An output folder (dist/ by default) will be created on the server. Change the Apache root to your project directory, specifically /dist/ng7/. Enabled mod_rewrite, and restarted Apache. sudo a2enmod rewrite sudo serivce apache2 restart And finally, add this .htaccess inside dist/ng7 directory. </ifmodule mod_rewrite.c=""> RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !...