Skip to content

elifesciences/enhanced-preprints-infrastructure

Repository files navigation

EPP IaC repo

This repository contains all the code for defining EPP's external infrastructure on AWS

Infrastructure

  • S3 Bucket
  • policy granting access read/write to S3 Bucket
  • Role with read/write policy applied and granted to EKS cluster service account via IRSA

Prerequisites

This repo uses:

  • terraform
  • tflint
  • task

You can get the correct versions by installing mise and running mise install. See .tool-versions.

Workflow

  • Create a branch for your changes
  • Make your changes
  • Run the lint task to check your changes
  • Run the fmt task to format your changes
  • Push your changes to the branch
  • Open a pull request
  • if the digger plan looks right, comment "digger apply"

Tasks

Preview changes

Use terraform plan within an environment, or use the helpful makefile tasks:

task staging-plan
task prod-plan

Applying changes

The easiest way to check and apply changes is using the taskfile:

task staging-plan
task staging-plan-apply

against staging, then

task prod-plan
task prod-plan-apply

for prod.

The exact output shown in the plan phase is what is applied (via a plan.plan output file). Alternative, you can just apply all outstanding changes using:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages