---
# System prepended metadata

title: Oula Health Initial Stack

---

# Oula Health Initial Stack

terraform cloud setup
	- @sabrina will get invite to app.terraform.com

terraform github setup

github auth allow for terraform cloud (expect an email to github owners)
- this allows us to infrastructure as code
      - terraform cloud
      - GitHub repo
      - resources defined in GitHub

terraform ECS+ALB work for httpd container
  - use fargate
  - verify what networking looks like
  - ensure tasks are private-only
  - will need a DNS zone or subzone when you want a friendly name for the service

Pending:
  - create ECR Docker image registry; configure build trigger
  - update ECS task to pull oula health docker image
  - update terraform for ECS task to include the redis container
  - Configure AWS RDS for data persistence

Training and Documentation:
  - Health Check and Logs
  - Developer workflow to update Service (rolling forward only for now)
  	```shell
  	SEMVER=v$(date "+%m.%d.%H-%M") # pseudo semver
    AWS_ACCT_ID=789277323634
    docker build -t \
      $AWS_ACCT_ID.dkr.ecr.us-east-1.amazonaws.com/oula-app:$SEMVER \
      ./Dockerfile
    ```
  - Architecture Diagram
      - expand [tech stack](https://hackmd.io/@camilosantana/oulaHealth-starting-points/edit) with AWS-specific objects defined in terraform
  - README.md files in every project folder in GitHub
