uwhackweek / jupyterhub-deploy

template repository for creating a jupyterhub
MIT License
0 stars 1 forks source link

Postgresql EC2 instance for snowex-hackweek #7

Open lsetiawan opened 3 years ago

lsetiawan commented 3 years ago

Overview

For providing postgres database, a custom ec2 instance was created to deploy the database for snowex datasets. A terraform configuration of this ec2 instance can be found at https://github.com/snowex-hackweek/jupyterhub/blob/main/terraform/eks/ec2_postgres.tf.

A key pair needed to be created ahead of time for the ec2 instance to deploy. @lsetiawan manually created this on AWS called snowex-postgres.pem. This could've been achieved by using the terraform aws_key_pair resource, but that was too much to try to figure out, especially in encrypting the public key.