Giter VIP home page Giter VIP logo

niketedm / magento-2-digitalocean-cluster-terraform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fitchspharmacy/magento-2-digitalocean-cluster-terraform

0.0 0.0 0.0 160 KB

Magento 2 DigitalOcean auto scaling cluster with Terraform and Packer. Adobe Commerce Cloud alternative. The best ecommerce infrastructure. Drive more sales online. Transparent billing. Developer-friendly. No hidden bottlenecks. (saver plan)

Home Page: https://www.magenx.com

License: Apache License 2.0

Shell 17.95% VCL 10.10% HCL 71.95%

magento-2-digitalocean-cluster-terraform's Introduction

Magento 2 auto scaling cluster with Terraform on DigitalOcean cloud

Deploy a full-scale secure and flexible e-commerce infrastructure based on Magento 2 in a matter of seconds.
Enterprise-grade solution for companies of all sizes, B2B B2C, providing the best customer experience.


export DIGITALOCEAN_ACCESS_TOKEN=xxx
export SPACES_ACCESS_KEY_ID=xxx
export SPACES_SECRET_ACCESS_KEY=xxx

Deploy each environment into isolated project and vpc:

Using Workspaces Each Terraform configuration has an associated backend that defines how operations are executed and where persistent data such as the Terraform state are stored. The persistent data stored in the backend belongs to a workspace. Initially the backend has only one workspace, called "default", and thus there is only one Terraform state associated with that configuration. Workspaces are managed with the terraform workspace set of commands. To create a new workspace and switch to it, you can use terraform workspace new.
For example, creating a new workspace:

$ terraform workspace new development  
Created and switched to workspace "development"!  

Workspaces are technically equivalent to renaming your state file. Within your Terraform configuration, you may include the name of the current workspace using the ${terraform.workspace} interpolation sequence. This can be used anywhere interpolations are allowed. Referencing the current workspace is useful for changing behavior based on the workspace. Named workspaces allow conveniently switching between multiple instances of a single configuration within its single backend. They are convenient in a number of situations, but cannot solve all problems.

A common use for multiple workspaces is to create a parallel, distinct copy of a set of infrastructure in order to test a set of changes before modifying the main production infrastructure. For example, a developer working on a complex set of infrastructure changes might create a new temporary workspace in order to freely experiment with changes without affecting the default workspace.

Create working directory:
mkdir magento && cd magento

Using git clone download terraform configuration:
git clone https://github.com/magenx/Magento-2-digitalocean-cluster-terraform .

For ssl certificate configuration add domains and email
Point your domains to DigitalOcean DNS

Add ssh keys to digitalocean for admin and manager users.

Update configuration variables according to your project requirements. To simplify configuration initialization and lower chances to damage your environment with typos, run init script: bash init.sh

Get $100 in credit over 60 days.

DigitalOcean Referral Badge

magento-2-digitalocean-cluster-terraform's People

Contributors

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