Boost Your output With Amazon Web Services. Meanwhile the last few years, the hottest word on everyone’s lip has been “productivity.” In the speed evolving Internet world, getting anything done fast always gets an upvote. In spite needing to implement actual business logic quickly and surely, as an experienced PHP developer I still spent hundreds of hours on other tasks, such as setting up database or caches, deploying projects, monitoring online statistics, and so on.
Many developers have tried hard with these so-called miscellaneous tasks for years, wasting time instead actually established on the project logic.
But now my life returned when a friend mentioned Amazon Web Services (AWS) four years ago. It opened a new door and led to an amazing boost in fertility and project amount. For someone who has not used AWS, This will help you. Amazon Web Services (AWS) can boost your productivity, literally, in minutes.
(AWS) Amazon Web Services was regularly launched in 2006. Many people will have listened to it, but perhaps don’t know what it may allow.
So, the first question is: What is AWS?
Amazon Web Services (AWS), is a gathering of cloud computing services, also called web services, that make up a cloud-computing platform offered by Amazon.com From this definition, we know two things: AWS is based on the cloud, and AWS is a collection of services, instead of a single service.
Since this doesn’t say you much, in my suggestion, it is better for a basic learner to understand AWS as:
- AWS is a collection of services in the cloud, as the definition says.
- AWS provides fast computing resources online (for example, you need 10 minutes to set up a Linux server).
- AWS offers affordable fees.
- AWS provides easy-to-use services out of the box, which saves lots of time manually setting up a database, cache, storage, network and other infrastructure services.
- AWS is always available and is highly scalable.
Create an AWS account for free
To start using any service, you want to have an account. Creating an account for AWS should take you no more than five minutes. Make clear that you have the following information at hand:
- An Email address, which is used to receive a confirmation email.
- A credit card, which will not be billed since the setup process is always free.
- A phone number, which will receive an automated system call to identify user
Visit AWS web page Then fill all the information and here it you account is ready to access.
First EC2 server setup
One of the Advantages of a cloud service is the capacity to get shared resources on demand. Amazon has allowed four tiers of service for the user to run its services, listed in the order of easiness:
- Management Console,
- RESTful API.
We will be using the Management Console window. So, after you log in to the console, you will see a display like below:
There are two areas to note:
- On the top-right corner, you will find the region selector. AWS gives services in 11 various regions across the world, and it is still growing.
- Choose a circumference as your choice, or leave it to US East (N. Virginia) as default. Various regions may vary in pricing, which you should bear in mind as your usage grows.
The important fundamental need of a cloud resource is the imaginary server. EC2, or Elastic Compute Cloud, is the name chosen by Amazon for its virtual server service. Let’s have a look at how simple it is to get a Linux server online.
In the EC2 management console, Begin the launching process like below:
Choose a machine image (AMI for short) to begin. This is the operating system that will run your machine. Get any system of your preference.
Next, select an instance type. You can get an idea of this as your hardware specification for your virtual server.
You can start with t2.micro, because you will get 750 hours of free usage every month with this instance for the first year.
With the capability to configure the server in more information, you can launch the server. The first time you use EC2, you will see a display screen as same as to the one below. The warning about security tells us how much Amazon emphasizes the security aspect.
Finally, to access a remote server, we want an identity. AWS will prompt us to choose an SSH key pair, as in the image below. Download the privacy key file and click the launch button.
Once the instance is ready, you can log into the system as the default user
ec2-user, with your privacy key.
ec2-user is the AWS default that also has sudo ability. Although it isn’t possible to change the default username, you may make any kind of user name and assign the appropriate privileges according to your criteria.
Greater AWS resources are billed in hours, which afford good flexibility. For example, taking the EC2 instance we just generate, there are two ways to put it out of service: stop and annul. Both actions will stop the billing. The diversity is that by stopping an instance, we can re-start it later with all our performance saved. In contrast, by stop an instance, we give the instance back to AWS for reuse and there is no way to recover the information.
We can stop an instance quickly by:
When you stop your EC2 instance, your bill stops growing, as well. It’s notably useful in the following scenarios:
When you wish to try something new, it is more cost loyal if you only need to pay for a couple of hours, and you perhaps won’t exceed the free tier for some services.
Pricing instruction for AWS is available online. After making some arithmetic, you may raise the question: Is AWS actually cheaper? By spread the hourly rate for a month’s time, it looks like it’s not aggressive at all. The answer is yes and no.
AWS is not cheaper if you simply appraise the hourly rate for the on-demand ability over a month. However, we still have the composed instances billing option as illustrated below:
AWS Security Group
How AWS handles approach control of use is done in two free layers. On the network level, it is attain by using an idea familiar as “security groups.” All AWS services are in freedom groups. And the security group complete who is allowed to pass through. Taking our EC2 instance, AWS has naturally created a security group for us:
More advanced services and SDK
There are many other AWS help also worth noting. Due to finite space, we are just listing some amusing ones here:
- Redshift: A column based database which can be used to developement trillions of data in a very fast manner. You must try it if you are responsible for the ETL of a large amount of data.
- Data Pipeline: I ovew you to quickly transfer data between AWS services, and further enables journal processing of data in a smaller shard.
- ElastiCache: Managed Memcache server, simple but does the job altogether.
- Lambda: Next generation of darkness computing. Lambda runs a transfer piece of code in an event-driven form that opens a new door for designing distributed applications.
- Route53: Powerful DNS solution with the backing of weighted response, geolocation based response on top of other technical` standard DNS solutions.
- SNS: Easy-to-use notification service, designed in subscriber/publisher pattern.
I think it is a good habit to check AWS whenever you are introducing some new component to your application. Most often, AWS will give you a sweet surprise as it will have a ready a SaaS alternative to offer.
One aim of AWS is to wipe out as much of the practical cost as possible. Traditionally, we need a large team of system engineers to continue the security and health of our infrastructure, either online on onsite. Competent teams will write and deploy their automatic tools to simplify the process. Yet, managing services becomes a difficulty project in practice, as well. AWS acts as a mercy in helping us manage our belongins. Below, I have listed some of the services provided by AWS that are most used:
- IAM, Identity Access Management,
- And a list of auto deployment services such as OpsWorks
Identity and Access Management
AWS contribue another method to handle access control by using IAM. This is an application level security restirction for when you need to approach the RESTful interfaces. Each REST request must be marked so that AWS knows about who is collect the service.
CloudWatch is a service administer by AWS to assemble and track all kinds of metrics from your AWS basics. It is more compelling because of its ability to act to certain events (or alarms).