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.
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 terraformaws_key_pair
resource, but that was too much to try to figure out, especially in encrypting the public key.