Join Brandon Rich for an in-depth discussion in this video Initial setup, part of AWS: Deploying and Provisioning.
- [Instructor] If you want to create an AWS account, follow along with this course, it's easy to do. Just head to aws.amazon.com. You'll see a screen that looks like this. Click sign in to the console. If you're a first time AWS user, many of the resources we will create during this course are eligible for the AWS free tier. However, we may incur some charges. AWS instance time is very cheap. Fractions of a cent per hour in cases of some smaller instances but they can all add up over time. To make sure you're not charged for anything beyond what you use in this course, be sure to watch the tear down videos at the end of each section.
On this screen, if I have an existing account, I'll be prompted to put in my email or mobile number and type in my password. From here, if you need to create a new account, all you need to do is click the radio button that says I am a new user. This will kick off a whole work flow where you give AWS details about yourself, you set up a password, you give it credit card information so that AWS knows where to charge as you create resources that cost you and it also sends you a confirmation number to a cell phone that you designate.
It's just a few steps, it only takes a few minutes and then you'll be at the same point I am here, ready to login to your AWS account. With the password entered, we just click sign in using our secure server to get the AWS home console. Here we are at the home page for AWS. Take a look around and you can see sections to show our recently viewed services. If this is your first time here, there won't be anything here. I've also created a GitHub account to make available the code that you'll see me using in this course. It's called Brandon Rich AWS deployment course.
And you'll see that there are two repos. Cloud formation demo which contains the yaml files that we use in the cloud formation demo and art gallery, the rubian rouse application that we will deploy using the various AWS deployment services. Click in here. If you'd like to follow along and use this app, you need to clone this application from GitHub. If you want to use your own application, that's fine but there may be some variation in the instructions. To clone the application, we just need to copy this https URL at the top then head to the terminal and say git clone and then paste the URL.
The application is now downloaded into the subfolder, art gallery and here it is. The next step to starting this app is to run a command called bundle. Bundle's the command that evokes bundler which handle all the gem dependencies that are specified in this file, the Gem file. If I look at the Gem file, I can see that it specifies all the dependencies that this application needs to run. In order to install them, we'll run the bundle command right now. Bundler is now installing all the dependencies we need to run this application.
Okay, now that bundler has finished, there's one more step. Out of the box, this application uses a local cycle mite database. We need to run bundle exec, rake db colon migrate to set up the database. Even if we were using a different database type, we would need to do this step. You can see that it runs through a few steps to create the database structure that we need. Finally, we can start the application with rails server. This will start the app running on port 3000.
If we head over to a browser, we can go to localhost:3000 and see the application come up. We'll talk more about this application as we precede into the deployment options in AWS.
- Understanding AWS EC2
- Creating an EC2 instance
- Provisioning with CloudFormation
- Architecting apps for horizontal scaling
- Creating an Elastic Beanstalk environment and app
- Using OpsWorks
- Deploying apps with CodeDeploy
- Working with the Cloud9 cloud-based IDE
- Quickly setting up coding projects with CodeStar