How to Install Go on AWS EC2?
Last Updated :
28 Mar, 2023
EC2 or Elastic Compute Cloud is a scalable computing service launched on the AWS cloud platform. In simpler words, EC2 is nothing but a virtual computer on which we can perform all our tasks and we have the authority to configure, launch or even dissipate this virtual computer.Go is an open-source, statically typed, compiled programming language developed by Google. It is also referred to as Golang. It should be clear, assertive, legible, and strong.
Go on AWS EC2:
You must first understand how to establish an EC2 instance on AWS in order to install GO on AWS EC2.
Steps to create EC2 Instance:
For this article, we will set up an Amazon Linux EC2 instance.
Step 1. Login to your AWS account. In case you don't have one, create a free-tier account and get started.
Step 2. After successful sign-in, search EC2 in the search space and hit enter.
Step 3. After opening the EC2 instance, click on Launch Instances.
Step 4. After Clicking Launch Instances, enter a name for your instance and select ubuntu for Linux EC2 instance.
Step 5. For key-pair use the default one,
Step 6. And let all other options be set to default. Changing other values unnecessarily may void the free tier and may be charged based on usage.
Step 7. After checking all the details, click on Launch Instance in the bottom right.
Step 8. We successfully created an Amazon Linux Ec2 instance on AWS. It can be checked by clicking on Instances, here all the created instances would be featured. Checking for running status for confirmation.
Now you can connect to the created instance by checking on it and clicking on connect.
Step 9. Connect to Instance my_server-linux.
Voila!!!! So with this our Linux EC2 instance is set and running on AWS.
Install Go on this EC2 instance:
On the EC2 Linux instance terminal, run the following command :
$ sudo apt install golang-go
Type YES when prompted.
In case you get an error, run the below command and try again:
$ sudo apt-get update
To confirm the installation you can try checking the GO version:
$ go version
We successfully installed GO on the Amazon EC2 instance.
Similar Reads
How to Install R on AWS EC2? R is widely used as a different programming language. There are several programming languages are present for different purposes. The C programming language is used to get basic knowledge in the programming field. Java programming language is used to get some deep knowledge of programming & its
7 min read
How to Install PHP on AWS EC2? AWS or Amazon web services is a cloud service platform that provides on-demand computational services, databases, storage space, and many more services. EC2 or Elastic Compute Cloud is a scalable computing service launched on the AWS cloud platform. In simpler words, EC2 is nothing but a virtual com
2 min read
How To Install Git on AWS? Git is a well-known distributed version control system. There are many other distributed version control systems are present, like Mercurial, Bazar, etc but among them, Git is widely used for some of its unique features. Basically Version Control systems are two types. One is Centralised & anoth
2 min read
How to Install MySQL on AWS EC2? AWS or Amazon web services is a cloud service platform that provides on-demand computational services, databases, storage space, and many more services. EC2 or Elastic Compute Cloud is a scalable computing service launched on the AWS cloud platform. In simpler words, EC2 is nothing but a virtual com
2 min read
How To Install Docker On AWS EC2 ? You can use the following instructions to install Docker on an AWS EC2 instance. Note that depending on the Linux distribution your EC2 instance is running, there may be differences in certain commands or processes. What is Docker?Docker is an OS-level virtualization that provides tools for building
3 min read
How to Install Python3 on AWS EC2? AWS or Amazon web services is a cloud service platform that provides on-demand computational services, databases, storage space, and many more services. EC2 or Elastic Compute Cloud is a scalable computing service launched on the AWS cloud platform. In simpler words, EC2 is nothing but a virtual com
3 min read