GithubHelp home page GithubHelp logo

edfi-terraform-deployment's Introduction

terraform-sandbox

This repository is under active development and serves as a proof of concept for using Terraform to deploy the Ed-Fi technology stack on Azure, AWS, and Google Cloud.

This repository is designed to be opened in Visual Studio Code with the Remote - Containers extension.

Initial configuration

Copy .env-sample to .env and set the PGPASSWORD variable.

Azure Deployment

az login;
cd azure;
terraform init;

terraform plan \
    -var="PG_PASSWORD=$PG_PASSWORD";

terraform apply \
    -var="PG_PASSWORD=$PG_PASSWORD";

terraform destroy \
    -var="PG_PASSWORD=$PG_PASSWORD";

AWS Deployment

Create an AWS ECR repository with the name edfi.

cd aws;
terraform init;

# deploy Ed-Fi ODS

terraform plan \
    -target="postgresql_database.edfi_ods_db" \
    -var="AWS_REGION=$AWS_DEFAULT_REGION" \
    -var="PG_PASSWORD=$PG_PASSWORD";

terraform apply \
    -target="postgresql_database.edfi_ods_db" \
    -var="AWS_REGION=$AWS_DEFAULT_REGION" \
    -var="PG_PASSWORD=$PG_PASSWORD";

terraform destroy \
    -var="AWS_REGION=$AWS_DEFAULT_REGION" \
    -var="PG_PASSWORD=$PG_PASSWORD";

Google Cloud Deployment

Create Service Account JSON

  • Under "Service account", select "New service account".
  • Give it any name you like.
  • For the Role, choose "Project -> Editor".
  • Leave the "Key Type" as JSON.
  • Click "Create" to create the key to the base of this repo as service.json
cd google_cloud;
terraform init;

terraform plan \
    -var="GOOGLE_CLOUD_PROJECT=$GOOGLE_CLOUD_PROJECT" \
    -var="PG_PASSWORD=$PG_PASSWORD";

terraform apply \
    -var="GOOGLE_CLOUD_PROJECT=$GOOGLE_CLOUD_PROJECT" \
    -var="PG_PASSWORD=$PG_PASSWORD";

terraform destroy \
    -var="GOOGLE_CLOUD_PROJECT=$GOOGLE_CLOUD_PROJECT" \
    -var="PG_PASSWORD=$PG_PASSWORD";

edfi-terraform-deployment's People

Contributors

xmarcosx avatar

Watchers

 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.