Code Monkey home page Code Monkey logo

terraform-jisti-aws-ecs's Introduction

Terraform Jisti Setup

Jitsi is a set of Open Source projects that allows you to easily build and deploy secure videoconferencing solutions.

Jitsi Meet is a fully encrypted, 100% Open Source video conferencing solution that you can use all day, every day, for free โ€” with no account needed.

This repository contains the terraform script to setup jitsi now AWS.

AWS Resources covered in this setup

  • VPC (Public Subnet, Private Subnets, Security Group)
  • ECS container with EC2 as a container instance(ECS container, 1 ECS Task Definition)
  • EC2 Lunch Configuration
  • Security Groups
  • IAM role, Instance Role, and Instance Profile
  • Auto Scaling and Load Balancer

Setup Terraform

Setup Terraform user profile

  • Open provider.tf
  • Add the AWS-CLI profile name the same as we add a profile for s3 backend configuration.
provider "aws" {
  region  = "${var.region}"
  profile = "<AWS-CLI PROFILE NAME>" //If you run this script using AWS EC2 of CodePipeline remove this line
}

Add terraform.tfvars file

  • If setting up the first time, copy the sample variables to terraform variables.
cp terraform.sample.tfvars terraform.tfvars

It will create terraform.tfvars file.

Note: we need to run the following command because recently jitsi update their security policy so we need to pass a strong password
./gen-passwords.sh

It will update the value of the following variables of terraform.tfvars.

JICOFO_COMPONENT_SECRET
JICOFO_AUTH_PASSWORD
JVB_AUTH_PASSWORD
JIGASI_XMPP_PASSWORD
JIBRI_RECORDER_PASSWORD
JIBRI_XMPP_PASSWORD

These variables are used in the task definition file.

  • terraform.tfvars has all the required environment variables required for the terraform setup.
  • Once all changes done we are ready to deploy our terraform.
  • Run terraform plan to verify all created resources.
  • Run terraform apply to create all resources on the AWS account given region.
  • If you want to delete infrastructure run terraform destroy.
For more information please follow our medium article terraform-jisti-aws-ecs

terraform-jisti-aws-ecs's People

Contributors

dhavaln avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.