Posts

Installing metabase on ec2 linux server as a service file.

 Metabase installation   log in with root user # sudo su  Install the java on linux server # sudo amazon-linux-extras install java-openjdk11  Creating a directory  # mkdir ~/metabase Download a metabase.jar file and move to directory to download metabase.jar # wget https://metabase.com/start/oss/jar    # mv /home/ec2-user/metabase.jar ~/metabase Change directory to metabase # cd ~/metabase Now Run the cammand to run the jar file # java -jar metabase.jar To make the jar file into service, these are the following steps   # sudo groupadd -r metabase # sudo useradd -r -s /bin/false -g metabase metabase # pwd # sudo chown -R metabase:metabase /home/ec2-user/metabase/metabase/directoy # sudo touch /var/log/metabase.log  # sudo chown syslog:adm /var/log/metabase.log  # sudo touch /etc/default/metabase  # sudo chmod 640 /etc/default/metabase Once the folder and file is made just copy and past the folloing steps in the file  # vi /etc/systemd/system/metabase.service [Unit] Description=Metabase

Launching EC2 using Terraform | Installing Grafana and promotues using Terraform.

  Launching EC2 instance using Terraform: The set of files used to describe infrastructure in Terraform is known as a Terraform  configuration . You will write your first configuration to define a single AWS EC2 instance. Each Terraform configuration must be in its own working directory. Create a directory for your configuration. $ mkdir learn-terraform-aws-instance Copy Change into the directory. $ cd learn-terraform-aws-instance Copy Create a file to define your infrastructure. $ touch main.tf Copy Open  main.tf  in your text editor, paste in the configuration below, and save the file. Tip:  The AMI ID used in this configuration is specific to the  us-west-2  region. If you would like to use a different region, see the  Troubleshooting section  for guidance. terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 3.27" } } required_version = ">= 0.14.9" } provider "aws"