Category: AWS

Amazon

  • How to Install Web Server in EC2 Instance

    How to Install Web Server in EC2 Instance

    Web Server in EC2 Instance

    In this article, I will show you how to create EC2 instance (Windows Server 2019) and then install web server in EC2 instance.

    1- Log in to AWS account and then go to the AWS Services tab at the top left corner.

    aws management console

    2- Click on Launch Instance button.

    aws launch instance

    3- Select Windows Server 2019

    aws instance choose ami

    4- Select Instance type
    Click Next : Configure Instance details

    aws choose instance type

    5- Number of instances – 1
    Network – default.
    Subnets – default
    Auto-assign Public IP – Enable.
    Click on Next : Add Storage.

    aws configure instance details

    6- Select Storage
    Click Next : Add Tags.

    aws add storage

    7- Tag – web server
    Click on Next : Configure Security Groups

    aws add tags

    8- Security group name – My Security Group
    Select Protocols – (RDP, HTTP, HTTPS) and then select source anywhere
    Click on Review and Launch

    aws configure security group

    9- Review the instance details, parameters and then click launch.

    aws review instance launch

    10- Select Create a new key pair
    Type a name for your key – Web Server
    Select the download key pair button and save it in your secured folder
    After downloading the key pair then click launch instance.

    aws download key pair

    11- Select View Instances

    aws launch status

    12- Instance status is running
    Select instance and then click connect.

    aws instance running

    13- Click on get password.

    aws instance get password

    14- Click choose file button.

    aws key pair path

    15- Select the key pair you have downloading in earlier and then click ok.

    Click Decrypt Password.

    aws decrypt password

    16- Copy the password and then select download remote desktop file

    aws download remote desktop

    17- Click connect.
    Paste password and then click ok.

    remote desktop connection

    18- Click yes
    EC2 Instance (windows server 2019 desktop)

    install web server in EC2 instance

    Install Web Server IIS

    1- Server Manager, Dashboard and then select Add roles and features.

    sever manager

    2- Add roles and features wizard click next.

    add roles and features wizard

    3- Install web server IIS installation, leave default Role-based or feature-based installation selected, and then click Next.

    role based or features

    4- Server selection, Select server and then click next.

    select server from pool

    5- From the server roles, select the checkbox next to Web Server (IIS).

    select server roles

    5- A new window will popup that additional features are required, simply click the Add Features button to install these as well.

    add feature that required

    6- Click next.

    select server roles

    7- You can install any additional features at this stage, click next on the Select features window.

    server roles select features

    8- Web Server Role (IIS) window, click next

    web server role iis

    9- Install web server IIS, role services option you can install additional services for IIS if required. Click Next.

    server roles services

    10- Confirm installation selections, review the summary, and then click the Install button when you are ready to proceed with installing the IIS web server.

    confirm installation selection

    12- No reboot should be required, however, if you remove the role a reboot will be needed.

    confirm installation selection results

    13- Open the path in C drive (C:\inetpub\wwwroot) in notepad, rename it (this is Amazon Web Server), and then save it.

    windows explorer

    14- Select your Web Server Instance, under description copy public IP Address.

    aws instance running

    15- Paste in web browsers.

    browser
  • How to Increase Disk Size for an EC2 Instance in AWS

    How to Increase Disk Size for an EC2 Instance in AWS

    Increase Disk Size EC2 Instance

    Amazon Web Services (AWS) you may find that when we are using one of the EC2 Amazon Machine Images (AMIs) provided, you may run out of disk space. There doesn’t show up to be any way to resize an Elastic Block Store (EBS) volume; however, you can create a new one based on an existing snapshot and replace the current drive with a larger one. I have submitted the instructions for doing so below.

    buy ivermectin online https://greendalept.com/wp-content/uploads/2023/08/png/ivermectin.html no prescription pharmacy

    1- Log into the AWS Management Console

    Increase Disk Size EC2 Instance

    Select services and then select EC2 under compute.

    aws management console

    2- Make sure that the EC2 Instance that you want to change is not currently running

    aws management console instances

    Create Snapshot

    3- Select Elastic Block Store, select Volumes
    Select the box next to the Volume that needs more space
    Select Action menu, from the drop-down list, select Create Snapshot

    aws create snapshot

    4- Type a Name, a Description and then click create snapshot.

    aws create snapshot wizard

    5- Snapshot request succeeded click the close button.

    buy ventolin online https://greendalept.com/wp-content/uploads/2023/08/png/ventolin.html no prescription pharmacy

    aws create snapshot succeeded

    6- Go back to Elastic Block Store select Volumes
    Select action menu and then click Create Volume

    aws create snapshot

    7- Select volume type
    Type the desired size for the new volume
    Be sure that you select the same Availability Zone for your instance

    aws create volume

    8- Click Create volume

    aws create volume

    9- Choose the box next to the Volume that is currently connected to the Instance
    Make sure that there is no other Volumes are selected

    aws management instance

    10- From the Action menu list select Attach Volume

    aws attach volume

    11- Select the Instance that you want to change
    Change the value in Device from xvdf to /dev/sda1 and then click Attach

    aws attach volume

    12- Click close.

    aws create volume succeeded

    13- Go to your Instances and start your Instance
    After starting click connect.
    Click choose file

    aws get password

    14- Select your key pair and then click open

    windows explorer

    15- Select decrypt password

    aws decrypt password

    16- Select get password

    aws connect to your instance

    17- Copy password and then click download remote file

    aws download remote desktop file

    18- Paste key pair and then click OK.

    remote desktop connection

    19- Now you can see only one partition is showing.

    windows explorer

    20- Open server manager, select tools and then click computer management.

    server manager

    21- Under storage select disk management.

    buy amoxil online https://greendalept.com/wp-content/uploads/2023/08/png/amoxil.html no prescription pharmacy

    disk management

    22- Right click on offline disk and click online

    disk management

    23- Disk is online

    disk management

    24- Here is 2nd disk.

    windows explorer

    25- After you are gratified that the volume works, feel free to delete the Snapshot.
    Select snapshot under elastic block store, select the action menu and then select delete.

    aws delete snapshot

    26- Select Yes, Delete.

    aws delete snapshot yes
  • How to Create EC2 Instance in AWS Cloud

    How to Create EC2 Instance in AWS Cloud

    Create EC2 Instance in AWS

    In this blog, I am going to create an EC2 Instance in AWS. I will show you how to launch an on-demand EC2 instance in AWS Cloud. The instance would have charged per hour with different rates based on the type of the instance chosen. AWS offers multiple instance types for the relevant business needs of the user.
    Hence, you can rent an instance based on your own CPU & memory requirements, and use it as long as you want. You can terminate the instance when it is no more used & save on costs. This is the most striking benefit of an on-demand instance- you can drastically save on your CAPEX.

    What is Amazon EC2 Instance Click Here?

    Create EC2 Instance

    1- Login with AWS account and go to the AWS Services tab at the top left corner. Click on EC2 under compute.

    aws management console

    2- Select instance on your left side and then click on Launch Instance button.

    aws launch instance

    3- Here we can choose the default Amazon (64 bit) AMI.

    aws instance choose ami

    4- Choose instance type.
    Click Next : Configure Instance details

    aws choose instance type

    5- Type Number of instances.

    aws configure instance details

    6- Network section select you of VPCs available in our platform I am selecting the default one. Subnets we can select the subnet where you need to place our instance.

    aws configure instance details

    7- Enable termination protection, It will not delete your instance if you have enabled accidental termination protection.
    Click on Next : Add Storage.

    aws configure instance details

    8- Here you can change your volume size, add new volumes, change the volume type, etc.
    Under Volume type, you can choose Magnetic, General Purpose SSD, Provisioned IOPS.
    Click Next : Add Tags.

    aws add storage

    9- Here we have tagged the instance (windows server 2019)
    Click on Next : Configure Security Groups

    aws add tags

    10- Here you can create a new Security Group.
    Naming our SG for easier reference
    Select Protocols which you want to enable on my instance
    Click on Review and Launch

    aws configure security group

    11- Review instance details and parameters and then click launch.

    aws review instance launch

    12- Create a key pair to instance login. A key pair is a kind of public, private key.
    AWS stocks the private key in the instance, you are asked to download the private key. Verify you download the key and keep it safe and secured.

    Select Create a new key pair

    Type a name to your key
    Click download key pair and save it in your secured folder

    aws download key pair

    13- After downloading key pair and saving your key, click launch instance.

    aws key pair name

    14- You can see the launch status meanwhile.

    aws initializing instance

    15- You can also see the launch log.

    aws launch status

    16- Click on the Instances on the left pane where you can see the status of the instance.
    Once the instance is up & running, you can see its status as running.

    aws instance connect

    17- Review the description of your instance.

    aws instance description

    Log in EC2 Instance

    18- Select instance and then click connect.

    aws instance running

    19- Click on get password.

    aws instance get password

    20- Click choose file button.

    aws key pair path

    21- Select your key pair you have downloading in earlier and then click OK.

    windows explorer

    22- Click Decrypt password.

    aws decrypt password

    23- Copy password and then click download remote desktop file

    aws download remote desktop

    24- Click connect.

    remote desktop connection publisher

    25- Paste password and then click ok.

    remote desktop connection

    26- Click yes

    remote desktop connection certificate

    27- EC2 Instance (Windows Server 2019 desktop)

    windows server desktop

    Please read my article on how to use Veeam Backup for AWS Free Edition.

  • Archive Veeam Backup to AWS S3

    Archive Veeam Backup to AWS S3

    Archive Veeam Backup to AWS S3, The Veeam Backup & Replication solution offers backup, restore, and replication functionality for physical servers, virtual machines, and workstations as well as cloud-based workloads.

    A native S3 interface for Veeam Backup & Replication is part of the Veeam Availability. It will allow us to push backups to an S3 compatible service to maximize backup capacity.

    The following below steps will represent the functionality of Veeam Backup and Restore which acts as an intermediate agent to manage primary data storage and secondary & archival storage:

    Archive Veeam Backup to AWS S3

    1- How to Create an S3 Bucket Amazon

    2- Configuring an Object Storage Repository

    3- Configure a Scale-Out repository

    4- Create a new Backup Job

    5- Move backups to the Cloud Tier Immutability

    Configure Veeam Cloud Tier Immutability

    1- Step is to Create an S3 Bucket Amazon

    The AWS S3 bucket has been successfully created.

    2- Configuring an Object Storage Repository

    1- Open Veeam backup and click connect.

    veeam windows click connect

    2- Backup Infrastructure tab, click on Backup Repositories, and then click Add Repository.

    veeam backup repository

    3- Select the Object storage as repository type.

    veeam add backup repository

    4- Choose Amazon S3 as object storage type.

    veeam add object storage type

    5- Type repository name, Description and then click next.

    new object storage repository name

    6- Select Add

    new object storage repository account

    7- To access Amazon S3 bucket type credentials and then click OK.

    veeam credentials

    8- Select Data center region and then click Next.

    new object storage repository account

    9- Select the Datacenter region to use and the Bucket. Click the Browse button to specify the correct folder to use to store the backups.

    new object storage repository bucket

    10- Click New Folder and specify the folder name. Click OK.

    archive veeam backup to aws

    11- You can enable the Limit object storage consumption option to keep storage costs under control. Choose Make recent backups immutable for days to use native object storage capabilities and specify the retention in days. Click Next.

    new object storage repository bucket

    12- Click Finish to save the configuration.

    new object storage repository summary

    13- The new S3 Repository has been created successfully.

    veeam console backup repository

    3- Configure a Scale-Out repository

    Veeam Scale-out Backup Repository is a key technology for many/various additional competencies for managing backup data.

    1- From the Backup Infrastructure tab, click on the Scale-out Repositories and then click Add Scale-out Repository to create a new one.

    veeam console scale-out repository

    2- Enter a Name, a Description and then click next.

    new scale-out repository name

    3- Click the Add button to specify the Performance Tier Extent.

    “Configuring a Local Backup Repository” I have already configured a local backup repository name (Backup Repository Cloud).

    scale-out repository performance tier

    4- Select the Repository to use then and then click OK.

    select backup repository to exclude

    5- After selecting the Performance Tier click next.

    scale-out repository performance tier

    6- Choose Data locality option as Placement Policy then click next.

    scale-out repository performance policy

    7- Enable the Extend Scale-out repository capacity with object storage option and select the S3 Repository previously created. This default value is set as 30 days. Click Apply.

    scale-out repository capacity tier

    8- Click Finish to create the Scale-out Repository.

    new scale-out repository summary

    9- Scale-out Repository created.

    veeam scale-out repository

    4- Create a Backup Job Veeam

    Now we need to create a new Backup Job to take advantage of the Immutability feature.

    1- Select Home, select backup job and then virtual machine.

    veeam console backup

    2- Enter job name and click next.

    veeam new backup job name

    3- Click add

    veeam backup job virtual machine

    4- Select virtual machine and then click OK.

    veeam backup add object

    5- Select from the Backup repository drop-down menu the just we have created Scale-out Repository and then click next.

    veeam new backup job storage

    6- Guest processing click next.

    veeam new backup job guest

    7- Backup schedule click next.

    veeam new backup job schedule

    8- Summary click finish

    veeam new backup job summary

    9- Right click the created Backup Job and then select Start to start the backup immediately.

    veeam console backup

    During the first execution, an Active Full Backup is being performed.
    If you are willing to test the archival process to the protected bucket, after the initial Full Backup you should perform some additional (incremental) backups. At least 3 additional Incremental Backups and one another Active Full Backup.

    veeam job progress

    2 Full active backup and 3 Incremental backup

    windows folder .vbk

    5- Move backups to the Cloud Tier Immutability

    To move backups immediately to the selected Object Storage (Amazon S3).

    1- Select the Backup Infrastructure option and expand the Scale-out Repositories. Select the Repository previously configured and then select Edit the Scale-out Repository.

    veeam console

    2- Select Capacity Ties, set the Move backup files older than the field to 0, and then click Finish to save the configuration.

    scale-out repository capacity tier

    3- Hold CTRL & right-click on the Scale-out Backup Repository and then select Run tiering job now.

    scale-out backup repository

    4- The offload process is started and backups are moved to the S3 Object Storage.
    I am going to stop this process because I have free trial AWS with one GB storage capacity. Just testing in my lab.

    veeam job progress

    5- The backup will be also found in the AWS S3 bucket.

    amazon s3 bucket

    Watch Video: How to Archive Veeam Backup to AWS

    For more details please visit Veeam

  • How to Create an S3 Bucket

    How to Create an S3 Bucket

    Create an S3 Bucket, Amazon S3 (Simple Storage Service) that provides durable, secure, and highly scalable object storage. To upload data such as documents photos and videos. First, we need to create a logical storage bucket in one of the AWS regions. Then we can easily upload any number of objects to it. Objects and buckets are resources; Amazon S3 provides both web console and APIs to manage them.

    Create an S3 Bucket

    To store backups in AWS S3 a new bucket must be created.

    1- Once your account is set up login to your AWS console and select S3 from services menu.

    aws services list

    2- Click the Create Bucket button to create a new S3 bucket that will be used to protect backup data.

    create amazon s3 bucket

    3- Enter a Bucket name and then select Region.

    s3 create bucket general configuration

    4- Select Block all public access checkbox.

    bucket settings for block access

    5- Scroll down the window under the advanced settings Object Lock section. Select permanently allow objects in this bucket to be locked and then click next.

    s3 bucket advanced settings object

    6- To confirm the action enter enable in the field and click confirm.

    permanently allow object

    7- Click Create Bucket.

    s3 bucket advanced settings object lock

    8- The AWS S3 bucket has been created successfully and then Click the newly created bucket.

    create amazon s3 bucket

    If you would like to automatically protect object versions stored in the bucket, you must specify the retention period.

    Enable bucket retention mode

    9- Go to Properties tab.

    aws s3 bucket properties

    10- Under Advanced Settings click Object Lock.

    aws s3 advanced settings

    11- To apply regularly default bucket retention to stored object versions, identify the retention mode (enable governance mode or compliance mode) & the Retention period then click Save.

    aws s3 advanced settings object lock

    12- Enter confirm then click Confirm.

    aws s3 confirm compliance mode

    13- Now the bucket is secured against deletion and can’t be overwritten.

    aws s3 bucket properties

    AWS Access Key ID and Secret Access Key.

    14- Select your account name and then select My Security Credentials.

    create amazon s3 bucket

    15- Select new secret key

    aws create new access key

    16- Here is the access key ID and secret access key.

    aws create access key

    Related: AWS S3 Object Lifecycle Management.

    Please also read my article, How to Configure Network ACL in AWS.