Coder Social home page Coder Social logo

basic-aws-infrastructure's People

Contributors

alvarohernandez avatar chandnipateltw avatar chandnirpatel avatar revolaution avatar timjdfletcher avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

basic-aws-infrastructure's Issues

Automate airflow deployment

Currently Airflow deployment is not automated.

The script ./scripts/bootstrap_rds.sh $TRAINING_COHORT airflow is not running correctly because tries to instantiate with default subnet group, but it's not MultiAZ. Therefore, terraform training_airflow is not in included in the instructions for starting the environment.

This are the temporal instructions to deploy it manually:

  1. Create a temporary new subnet group for RDS with the name: ${COHORT}-bootstrap-db-subnet-group. When creating make sure to add it at least two subnets in different availability zones

  2. Run the following script to create bootstrap db:

./scripts/bootstrap_rds.sh $TRAINING_COHORT airflow

Note: The password is saved in Parameter store for future use.

  1. Then you can run the terraform code:

./scripts/run_terraform.sh $TRAINING_COHORT training_airflow apply -input=false -auto-approve;

  1. Once EC2 started we still have to install airflow manually, ssh into the machine and:

yum groupinstall “Development tools”

yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel python-devel wget cyrus-sasl-devel.x86_64

yum -y install python-pip

pip install apache-airflow[postgres,s3]

  1. Edit airflow.cfg and put this sql string:

postgresql://airflow:YOURPASSWORD@YOURRDSSERVER:5432/airflow?sslmode=require

  1. Start airflow:

airflow initdb
airflow scheduler -D
airflow webserver -D

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.