GithubHelp home page GithubHelp logo

auser / terraform-aws-n8n-automation-tool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from msharma24/terraform-aws-n8n-automation-tool

0.0 0.0 0.0 523 KB

Self hosted https://n8n.io/ on AWS using Terraform

Shell 0.86% HCL 97.49% Dockerfile 1.65%

terraform-aws-n8n-automation-tool's Introduction

terraform-aws-n8n-automation-tool

Introduction

Terraform configuration for self-hosting n8n-io- on AWS using ECS Fargate. n8n is an extendable open-source workflow automation tool.

Resources

  • VPC
  • AWS ALB
  • AWS Aurora MySQL
  • AWS Elastic Cache -Redis cluster
  • AWS CodePipeline, triggered from a github repo.
  • AWS CodeBuild outputting to ECR container registry
  • AWS ECS - Fargate

n8n env variables for ECS Service.

Architecture Diagram

n8n-io

Usage

Deployment Guide

  • Git clone this project.

  • create a terraform.tfvars file locally

  • $touch terraform.tfvars and enter the following values

region                = "<AWS_REGION_ID>"
db_name               = "n8n"
aurora_instance_class = "db.t3.small"
aurora_engine         = "aurora-mysql"
aurora_engine_version = "5.7.mysql_aurora.2.10.1"
github_connection_arn = "<GH_CONNECTION_ARN_HERE>"

Configure your AWS access keys as environment variables:

export AWS_ACCESS_KEY_ID=(your access key id)
export AWS_SECRET_ACCESS_KEY=(your secret access key)

Deploy the code:

terraform init
terraform apply

Codepipeline to build the n8n-debian docker image and rolling deploy to ECS Service for n8n

code-build code-pipe

terraform-aws-n8n-automation-tool's People

Contributors

msharma24 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.