Skip to content

rajdeut/terraform-aws-nightscout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform for Nightscout running on AWS (free-tier)

License: MIT

⚠️ WARNING: This project is no longer maintained

An easier to deploy and "always-free" version of this project has been created to run on Oracle's Cloud Infrastructure.

Oracle's service has a free-tier that doesn't expire like Amazon.

You can view the Terraform OCI Nightscout project here: https://github.com/rajdeut/terraform-oci-nightscout

Description

This Terraform project has been developed to deploy a Nightscout instance on AWS using free-tier resources that best replicate the operating experience of Heroku.

While every effort has been made to ensure only free-tier resources are used, this may change as Amazon adjust their offering and we take no responsibility for the services deployed to your own AWS account. You can read more about what services are offered in their free-tier here.

Installation

Detailed instructions on how to use this project are located in this repository's wiki.

There is also a step-by-step walkthrough video available on YouTube, which follows the setup guide in the wiki.

The project is setup to access AWS credentials in its config and not system defaults such as ~/.aws/credentials. If you're an experienced Terraform/AWS user you may wish to change this and can do so by modifying the providers.tf file as per Terraform's instructions. If doing this I suggest forking & modifying this repo instead of cloning it.

Terraform details

Inputs

  • display_units [mmol|mgl] (default: mmol) - The blood glucose level of measurement to be used
  • domain (optional) - The domain name that will be pointing to your Nightscout instance. (Required if using HTTPS and wanting automatic SSL generation)
  • ec2_ssh_public_key_path (default: config/nightscout-ec2-key.pub) - Path to the public key to be installed on the Nightscout server
  • git_owner (required) - Your GitHub username
  • git_repo (default: cgm-remote-monitor) - The name of the GitHub Nightscout repository to connect
  • https [true|false] (default: false) - If true, sets the Nightscout port to 443 instead of 80. When used with domain will generate an SSL via LetsEncrypt
  • my_ip (optional) - The IP address to whitelist for SSH access to the Nightscout server

Outputs

  • nightscout_url - The IP address for the Nightscout instance that has been created

About

Terraform module to install Nightscout on AWS using free-tier infrastructure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •