![]() If you’re done with the stack and want to remove it use: pulumi destroy 8. To create or update the infrastructure, use: pulumi up You can use the below code for launching and configuring the webserver: provider “aws”, ) # Show the Public IP address of the webserver EC2 instance pulumi.export(“publicIp”, server.public_ip) How can we launch Instance and configure the webserver?Ĭreate a folder and inside it create a file with the extension (.tf). Terraform can manage both existing service providers and custom in-house solutions. ![]() This includes low-level components such as compute instances, storage, and networking, as well as high-level components such as DNS entries, SaaS features, etc. Terraform is an infrastructure as code (IaC) tool that allows you to build, change, and version infrastructure safely and efficiently. Ssh -i file.pem you can configure the webserverįor configuring the webserver, type the following commands: sudo su -root yum install httpd -y cd /var/ After that, we have to do SSH for configuring EC2, for that we will use the following command ![]() It will successfully launch the instance. $ aws ec2 run-instances -image-id ami-xxxxxxxx -count 1 -instance-type t2.micro -key-name MyKeyPair -security-group-ids sg-903004f8 -subnet-id subnet-6e7f829e We can launch the EC2 instance using our command prompt.įirst, we need to install aws cli in our Operating System After installation and configuration, we need to run the following command to launch the EC2 instance. We can launch EC2 instance and configure web server on it manually.įor Configuring webserver, Type the following commands sudo su -root yum install httpd -y cd /var/ ![]() Here are the different types of launching AWS EC2 instance & configuring Web Server: 1. ![]() Clients typically request and view Web pages using Web browser applications such as Firefox, Opera, Chromium, or Internet Explorer. Web servers are used to serve Web pages requested by client computers. what is Apache Web Server?Īpache is the most commonly used Web server on Linux systems. What is an EC2 instance?Īn Amazon EC2 instance is a virtual server in Amazon’s Elastic Compute Cloud (EC2) for running applications on the Amazon Web Services (AWS) infrastructure. Millions of customers - including the fastest-growing startups, largest enterprises, and leading government agencies - are using AWS to lower costs, become more agile, and innovate faster. Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud platform, offering over 200 fully-featured services from data centers globally. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |