Giter VIP home page Giter VIP logo

drupal_eks's Introduction

Drupal POD in EKS cluster

Creates a Drupal Pod in an EKS Cluster in the given Region.

User can choose:

  1. Name of the service
  2. Region
  3. EKS Cluster

Template can be run as follows:

  • Locally
  • Scalr Next-gen as the remote backend
  • Scalr Next-Gen Service Catalog Offering

Using Locally

  1. Pull the repo
  2. Set variable values in terraform.tvars.(json)
  3. Add your GCE access and secret keys to terraform.tfvars(.json), or enter them at the run time prompts. (scalr_google_project, scalr_google_credentials)
  4. Run terraform init;terraform apply and watch the magic happen.

Using with Scalr Next-Gen as Remote Backend

  1. Pull the repo
  2. Create a CLI workspace in Scalr Next-Gen and configure the backend to match in main.tf.
  3. Create an TF API token in Scalr Next-Gen and add it to ~/.terraformrc.
  4. In Scalr Workspace add Terraform variables and values as follows (note that terraform.tfvars(.json) in the template is not used with a remote backend).
    1. region
    2. service_name
    3. cluster_name
    4. mysql_password
    5. root_password
  5. Run terraform init;terraform apply and watch the magic happen.

Using with Scalr Next-Gen Service Catalog Offering.

In general follow the example here https://scalr-athena.readthedocs-hosted.com/en/latest/next-gen/service_catalog.html#service-catalog

  1. Create Policies (scalr-module.hcl shows the policy bindings that are required)
    1. cloud.locations - Policy to limit the cloud locations (note this can be all locations but the policy must exist)
  2. Create a Global Variable name_fmt with REGEX ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  3. Create a Global Variable sesnitive_input and set both flags on to mask inputs.
  4. Fork or clone the Source repo (https://github.com/scalr-eap/eks_wordpress)
  5. Create the Service Catalog offering pointing to your copy repo
  6. Request the offering. It can take 5-10 minutes for the DNS name to work and the POD to become active.

drupal_eks's People

Contributors

pgale61git avatar

Watchers

James Cloos avatar Marat Komarov 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.