February 2020
Intermediate to advanced
440 pages
13h 51m
English
Launch an EC2 instance following the Launching an EC2 instance into VPC recipe in Chapter 6, Working with EC2 Instances. SSH into our machine and run the following commands:
sudo suyum update -yyum install -y httpd systemctl start httpd.service systemctl enable httpd.servicecd /var/www/htmlecho "<html><h1>My Web Server</h1></html>" > index.html
We did this through EC2 user data in the Using EC2 user data to launch an instance with a web server recipe in Chapter 6, Working with EC2 Instances.
Read now
Unlock full access