Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run metabase on ec2 instance (without elastic beanstalk)

i am newbie in Metabase, also i don't have much knowledge about AWS. i have EC2 instance and i want to run Metabase on EC2 instance without elastic beanstalk. is this possible? if yes than how? and if no than why?

like image 327
Vinay Pandya Avatar asked Nov 17 '16 05:11

Vinay Pandya


People also ask

Why use Elastic Beanstalk instead of EC2?

Elastic Beanstalk is one layer of abstraction away from the EC2 layer. Elastic Beanstalk will setup an "environment" for you that can contain a number of EC2 instances, an optional database, as well as a few other AWS components such as a Elastic Load Balancer, Auto-Scaling Group, Security Group.

Is EC2 the same as Elastic Beanstalk?

When you create a web server environment, AWS Elastic Beanstalk creates one or more Amazon Elastic Compute Cloud (Amazon EC2) virtual machines, known as Instances. The instances in your environment are configured to run web apps on the platform that you choose.

Is Elastic Beanstalk free in AWS?

There is no additional charge for AWS Elastic Beanstalk. You pay for AWS resources (e.g. EC2 instances or S3 buckets) you create to store and run your application. You only pay for what you use, as you use it; there are no minimum fees and no upfront commitments.


1 Answers

The simplest way of running metabase in a EC2 instance is following their own docs on how to run the application from the .jar file. Metabase has an awesome documentation so I recommend you take a look at it.

In simple steps you need to :

  1. Install Java 7
  2. Download Metabase .jar file
  3. Run .jar file java -jar metabase.jar

The application will be running on port 3000 (http://:3000). Remember to open inbound rules on the EC2 security group. Important to say this setup is recommended only for testing. If you want to have an instance in production you should worry about other things such as pointing the application database to a more robust database like PostgreSQL or MySQL.

Link to official docs: http://www.metabase.com/docs/latest/operations-guide/running-the-metabase-jar-file.html

like image 197
fernandosjp Avatar answered Dec 30 '22 11:12

fernandosjp