Tech Junkie Blog - Real World Tutorials, Happy Coding!: Iaas With AWS: Setup SSL/TLS With Application Load Balancer Part 2

Wednesday, November 3, 2021

Iaas With AWS: Setup SSL/TLS With Application Load Balancer Part 2

 In the previous post we created our certificates in the Certificate Manager, in this post we are going to create four instances using a Launch Template so that we could use it in our load balancer.  

1. We are actually going to use "Launch Template" to create our instances, so click on "Launch Templates" under "Instances" in the EC2 Dashboard

2.  Click on the "Create launch template" button
3. Give your template a name, then scroll down to AMI type


4. Select Amazon Linux 2 as the image, t2.micro as the instance type, and specify the "Key pair(login)"

Assign a security group with web traffic


5.  Accept the default VPC, and expand "Advance Details" and paste the following into the "User Data" to install Apache Web Server, then click on "Create launch template"

#cloud-boothook
#!/bin/bash
#Use this for your user data (script without newlines)
# install httpd (Linux 2 version)

yum update -y 
yum install -y httpd.x86_64 
systemctl start httpd.service 
systemctl enable httpd.service 
echo "Hello world from $(hostname -f)" > /var/www/html/index.html
cd /var/www/html/
cp index.html contacts.html

6. Select "Launch instance from this template

7.  Select the launch template you've just created and type 4 in the "Number of instances" field, make sure everything is correct, it should be because the template was applied.

8. Click "Launch instance from template" to create the four instances.


9. If you go to the "Instances" page you will see four instances being created

10. To make it easier to work with give the instances a name by click on the pencil icon








13 comments:

  1. "Welcome to We Buy Houses Los Angeles, the Official Cash Home Buyer of Los Angeles, California, and surrounding areas.

    We provide home sellers with a cash option to purchase their property quickly—with NO Repairs, and NO Fees or Commissions.

    Simply go to our website or call us at (213) 290-4980 to get a no-obligation cash home offer sent to you. It’s free and confidential.

    Avoiding foreclosure? Facing divorce? Moving? Upside down in your mortgage? Liens? It doesn’t matter whether you live in it, you’re renting it out, it’s vacant, or not even habitable. We help owners who have inherited an unwanted property, own a vacant house, are behind on payments, owe liens, downsized, and can’t sell… even if the house needs repairs that you can’t pay for… and yes, even if the house is fire damaged or has bad rental tenants.

    Basically, if you have a property and need to sell it… we’d like to make you a fair cash offer and close on it when you’re ready to sell.

    Just contact us today to get started!

    ReplyDelete
  2. Thank you so much sir sharing for 2nd part of Application load balance really help full and informative keep posting this type of knowledge full articles thank you so much again.
    Waiting for Tow Truck

    ReplyDelete
  3. Very informative learned a lot. Thanks. We are offering custom logos, just click below:
    Custom Logo Design

    ReplyDelete
  4. Stylish leather jackets for men and women with the variety of options available in Celebs Leather Jackets. Choose the best leather jackets and make your personality more attractive and look smart. see more collections on Celebs Leather Jackets.
    Celebrity Leather Jackets Women

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Students feel satisfied with their submitted assignments, but it can back to them anytime simultaneously it creates a bad impression on the professors. Ergo, they gravitate towards online assignment help service at SourceEssay and become free from annoying workload and stress instantly.

    ReplyDelete
  7. Technoblade hoodies would probably lose The duel To Dream if iT happened now.

    ReplyDelete

Search This Blog