Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Go Web Development Cookbook

You're reading from   Go Web Development Cookbook Build full-stack web applications with Go

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher Packt
ISBN-13 9781787286740
Length 338 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Arpit Aggarwal Arpit Aggarwal
Author Profile Icon Arpit Aggarwal
Arpit Aggarwal
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Title Page
Dedication
Packt Upsell
Contributors
Preface
1. Creating Your First Server in Go FREE CHAPTER 2. Working with Templates, Static Files, and HTML Forms 3. Working with Sessions, Error Handling, and Caching in Go 4. Writing and Consuming RESTful Web Services in Go 5. Working with SQL and NoSQL Databases 6. Writing Microservices in Go Using Micro – a Microservice Toolkit 7. Working with WebSocket in Go 8. Working with the Go Web Application Framework – Beego 9. Working with Go and Docker 10. Securing a Go Web Application 11. Deploying a Go Web App and Docker Containers to AWS 1. Other Books You May Enjoy Index

Creating your first EC2 instance to run a Go web application


Creating an EC2 instance on AWS is the same as getting a new machine and installing the required software to run a web application. In this recipe, we will create an EC2 instance, provision it, and run a simple Go web application.

Getting ready…

To start with the creating and deploying on an AWS EC2 instance, firstly, you have to create and activate an AWS account. Because this is out of context for this recipe, we will not be doing it here. 

A well-explained process you can follow to create and activate an AWS account is available at https://aws.amazon.com/premiumsupport/knowledge-center/create-and-activate-aws-account/

How to do it…

  1. Login into AWS, move to the EC2 Management Console, and click on Launch Instance in the Create Instance section, as shown in the following screenshot:

  1. Select Amazon Linux AMI 2017.09.1 (HVM), SSD Volume Type, as shown in the following screenshot:

  1. Select the t2.microinstance type and click on Next: Configure...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images