Walk through the creation of a cloud service using AWS to demonstrate the ease of implementation of cloud infrastructure and service.
- We can talk about cloud all day, but it's really cool to actually see this all in action, so in this particular episode, we're going to actually create our own cloud system. Now in this particular episode, I'm gonna be using the very popular Amazon Web Services. However, Amazon's not the only kids in town, it's just the one that I'm more comfortable with. Here at Total Seminars we use Amazon Web Services, and it's got a nice, pretty, graphical interface that I can show you here in just a moment.
So, let's understand what our goal is here. We're going to make a web server. That's all we're gonna do, we're gonna throw up one little web server and then we're gonna access that web server. I'm not gonna set up a real webpage. It'll just have a default webpage in there, but it will have a public IP address, and it'll be completely accessible. Now when you're working with Amazon, the one thing I'm gonna have to warn you is that when you move into really making the cloud work for you, is they have a lot of their own terminology and concepts that it takes some time to learn.
My goal here is not to turn you into an Amazon Web Services guru. In fact, I'm barely going to touch the power that is Amazon Web Services, but it'll give us an idea of how we can really do cloud implementation. So if we're gonna have a cloud, let's draw a cloud. So here's the internet itself. It's a cloud, or half a flower, I'm not sure. And what we're going to do is we're going to connect to the big internet by making our own, what we start with with Amazon, they call it a virtual private cloud, so what we're gonna do, and this is how everybody works at Amazon, is we're gonna make our own little network, and in this network we're gonna have our server, and we'll have a virtualized router in here as well.
And we're also gonna have a firewall. This is all gonna be set up for us auto-magically. It's really, really powerful. So this virtual private cloud is going to be all of this. I am not drawing any more clouds because people tease me too much, and this will connect to the big internet. We will have security, we will have a legitimate public IP address, and we'll also have an internal network.
It'll probably be like a 172.16, so that will be our private network that we allow this server to work in. The cool part about a VPC is that I could add 150 servers if I wanted to into this, and they're all gonna have a private IP address, so this will be net capable, and the nice part is is it pretty much all happens auto-magically. So let's go ahead and we're gonna build all this up, and this is gonna take all of about maybe four minutes, so I've got this set up over here.
So let's go ahead and take a look at Amazon Web Services. So welcome to Amazon Web Services. Amazon Web Services is massive in terms of all the different things it can do. Remember, we're just gonna set up a virtual private cloud, and then we're going to throw in a web server into this, so everything else you're seeing here has to do with setting up servers, it has to do with if you got big databases. If you've got an existing website and you want to bring it into the cloud, they handle that really easily.
If you need to set up a DNS server, if you're working with Internet of Things, if you want to deal with lots of videos. The bottom line is is that Amazon Web Services probably already has a tool pretty much ready to go. So when we talk about Amazon Web Services, we'll hear terms like infrastructure as a service, but Amazon web servers have certainly gone past that, or Amazon Web Services have gone past that. With Amazon Web Services you certainly have the equivalent of platform as a service.
For somebody who's writing a web app, they could use their Docker apps. If you're not familiar with Docker, it's not on the exams, but be aware of its development tool that a lot of people use. It'll take care of everything. There is no way that I can go through very much of it in this, and you don't really need it for the exam, but I want to get you excited. Oh, and by the way, setting up an account with Amazon is free. Yep, it's free, you can actually do everything I'm doing right now for free. You still gotta give 'em a credit card, and you gotta be careful, 'cause if you click on something suddenly you can start paying money, but they do a pretty good job of letting you know when you're spending and when you're not spending.
So I'm gonna go ahead and get started here, and the first thing we're gonna do is set up a virtual private cloud. So, I'm gonna go ahead and they've got a handy little wizard here. Now keep in mind, what we're talking about here is we are going to have some little CIDR based private addressing that's gonna be internal. You're not gonna see a public address for this at this point in the game. So we gotta give it some kinda name so I can recognize it, I'm gonna call it Fred. Availability zones are certain areas that are set aside to you know, to help you if you want to get a better connection to something.
Most of the time I just leave 'em alone. And that's pretty much all we have to do, so let's go ahead and create our virtual private cloud. He's gonna take a minute to do this. The moment we start setting this up, you've pretty much set up a virtual router, a virtual switch, you've got some security built in already. We don't have a server yet, okay? So we're really just kinda making the infrastructure. All right, so it's right into this. And life is a beautiful thing, it's gonna give us some serv-- Wait, I don't want to do all this, let's go ahead and close that, and let's take a look at my VPCs, so I've already had one from before, but now you can see my Fred is here.
So he's gonna have some internal addresses of 10.0.0, and notice it's a WAC 16, so if I wanted to, and there's no problem other than the fact that my credit card might explode, I could dial up right now 65,534 web servers, all within this virtual private cloud. Now, before we get started any deeper here, keep in mind that our goal is to build a web server, which is great, but cloud computing can do so much more.
By setting up this virtual private cloud, these could be just backup systems if I wanted them to be. These could be Voice over IP servers. They don't necessarily have to be web applications. Granted, the cloud was probably invented because of the need for web applications, but there's so much more to it now, it's absolutely incredible, so a virtual private cloud is just my private cloud of machines that are just for me. I can glue on a public IP address, I could expose certain machines to the internet if I want.
On the same token, I may not want to. I may just leave these machines just for in-house. I may set these guys up as web servers and never give 'em a public address, 'cause it's just gonna be in-house. I can make all kinds of different types of connection methods to this virtual private cloud. I could set up a VPN if I wanted to. I could make web server front ends. I can use SSH to connect to 'em. I might have my own special application with its own application needs, so just because I build all this up through a nice little webpage like this, understand that I have complete, utter, and total flexibility.
If I want to, I can actually drill down to the root level on any one of these given machines, and do whatever I want, so VPC isn't that pretty to look at. I mean, all we have is this, but it's pretty much exactly as we described on the board already. Instead of doing the 172s, it's a 10-dot, but other than that, it's exactly the same. Okay, the VPC is up and running, so what I want to do now is I want to dial up a simple web server. Now, I could do this manually, but I am the most lazy instructor you've ever met, so I'm gonna take advantage of a tool that comes with AWS, called Elastic Beanstalk.
And it's, this is so embarrassingly easy you're gonna laugh. So I'm gonna call it Fred, 'cause I love Fred. So I can choose a platform if I want to. In this particular case, I'm just going to, I'm gonna do something preconfigured, but what you're going to see is I'll have a sample application based on whatever platform I use. Now keep I mind, when we're talking about platforms here, we're talking about developer platforms. This is the platforms that people who write code use to make groovy, different types of web apps, and I'm just picking one arbitrarily.
So as you can see at this point in the game, it's gonna be taking a few minutes, so let's have a cup of coffee while it grinds out our new application, okay? All right, it's done, so let's go back to the screen and take a quick peek here. So we can see that we have, now you gotta dig through here a little bit, so here's my Elastic IP address as they call it, 18.104.22.168. You can see I have a security group. It's built a firewall for me based on standard industry practices.
Keep in mind, I can edit all of this if I want to, but for right now, I just want to give you guys an idea that everything is running the way we want. So the great way to test this is let me grab this IP address. I'm gonna open up another browser. And there's our hello world message. So what we've done here, and by the way, we waited maybe three minutes for this thing to grind up, and it has built a complete, now it's a very simple application, but it has taken care of all of this for us.
So in less than five minutes of clicking, I created a virtual private cloud, I populated it with a server, got a public IP address. The only thing I haven't done in this particular example is got a domain name, because unfortunately, they're gonna charge me if I actually set a domain name to it, but that would have taken about another three minutes. This is the real power of what makes this all work. So it's, the setup initially is great. There's no argument to that, but what if I needed to add another server? It's just a couple of clicks away.
What if I need another server in Singapore? It's just a couple of clicks away. What if I need to improve the power? My servers don't have enough CPU power? It's just a couple of clicks away. The only thing you have to watch out for in these types of things, is watching your credit card bill because Amazon, as well as all the others, while they try hard to warn you, it can be easy to be spending $5,000 a month if you're not carefully clicking and understanding what you're doing.
This Total Seminars course covers the exam certification topics. For information on additional study resources—including practice tests, lab simulations, books, and discounted exam vouchers—visit totalsem.com/linkedin. LinkedIn Learning members receive special pricing.
This course was created by Total Seminars. We are pleased to offer this training in our library.
We are a CompTIA Partner. As such, we are able to offer CompTIA exam vouchers at a 10% discount. For more information on how to obtain this discount, please download these PDF instructions.
- Implementing wireless security
- Threats to your wireless network
- Wi-Fi Protected Setup
- Installing a wireless network
- Cloud ownership and implementation
- Creating a virtual machine
- PaaS, SaaS, and IaaS
- Mobile networking
- Deploying mobile devices