Skip to content

Commit

Permalink
Add tf iac (#415)
Browse files Browse the repository at this point in the history
* added production backend-service & fixed image name in backend-service

* fixed backend-service dependency

* added frontend deployment

* backend-service dependency

* more backend-service dependencies

* frontend deployment test

* clean up actions

* pass secrets to frontend workflow

* frontend bucket name fix

* deploy frontend from main branch only

* Build the frontend and deploy the build artifacts.

* IC- Switch frontend build to yarn

* test frontend build

* IC- Deploy dist

* updating cloudfront tls config

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* add api rewriting and x-allow secret generation

* api uri rewrite update

* Frontend IAC: Pass the build environment mode to yarn build (e.g. staging, production)

Just does staging for now.

* add index.html function

* frontend test

* frontend test

* temporarily run all steps on add-tf-iac branch

* fix apply-iac workflow & production backend-service

* fix mock execution role & temporailiry disable verify-iac for add-tf-iac branch

* frontend build environment

* replacing DB secrets

* workflow typo fix

* improve x-allow secret handling

* index function fix

* db secrets access & tls requirement

* fix rewrite function

* add smtp outbound

* env env variables

* remove env context from with key

* terragrunt upgrade

* relax provider versions

* relax provider versions

* relax provider versions

* adjusting provider requirements

* adjusting provider requirements

* adjusting provider requirements

* adjusting provider requirements

* adjusting provider versions

* removed lock file

* updating terraform lock files

* initial production test

* add github environments and production updates

* initial commit

* add backend service

* initial iac validation code

* fixed tgenv path

* tgenv error

* terragrunt manual install

* fix typo

* add all tf

* add working directories

* disable tofu wrapper

* add aws creds

* add aws creds

* add workflow permissions

* add iac plan

* add iac plan trigger

* DJUST iac workflow triggers

* add plan-iac push trigger

* add plan-iac push trigger

* fixed formatting

* added environment/module matrix

* removed push trigger from resuable jobs

* corrected env syntax

* re-corrected env syntax

* re-corrected env syntax again

* testing using env in job block

* hardcoded workaround for env context issue

* missed updating one input in called workflows

* run all steps on a single runner

* add max parallel constraints to matrix to avoid concurrency issues

* corrected backedn-infra dependency issue

* dependency issue in backend-infra

* add continue-on-error to actions validation job

* added init support for dependency mock outputs

* corrected production module path

* further dependency correction

* further dependency resolution

* further dependency resolution

* further dependency resolution

* narrowed path triggers for iac workflows

* adjusting job conditional logic

* added backend-service verify

* testing primary action

* testing primary action

* fixed verify-backend trigger

* added production backend-service & fixed image name in backend-service

* fixed backend-service dependency

* added frontend deployment

* backend-service dependency

* more backend-service dependencies

* frontend deployment test

* clean up actions

* pass secrets to frontend workflow

* frontend bucket name fix

* deploy frontend from main branch only

* Build the frontend and deploy the build artifacts.

* IC- Switch frontend build to yarn

* test frontend build

* IC- Deploy dist

* updating cloudfront tls config

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* add api rewriting and x-allow secret generation

* api uri rewrite update

* Frontend IAC: Pass the build environment mode to yarn build (e.g. staging, production)

Just does staging for now.

* add index.html function

* frontend test

* frontend test

* temporarily run all steps on add-tf-iac branch

* fix apply-iac workflow & production backend-service

* fix mock execution role & temporailiry disable verify-iac for add-tf-iac branch

* frontend build environment

* replacing DB secrets

* workflow typo fix

* improve x-allow secret handling

* index function fix

* fix rewrite function

* env env variables

* remove env context from with key

* terragrunt upgrade

* relax provider versions

* relax provider versions

* relax provider versions

* adjusting provider requirements

* adjusting provider requirements

* adjusting provider requirements

* adjusting provider requirements

* removed lock file

* updating terraform lock files

* workflow cleanup

* environment cleanup

* validate workflow test

* validate workflow test

* validate workflow test

* validate workflow test

* replaced hardcoded variables with environment variables

* confirming environment variables

* confirming environment variables

* testing create_before_destroy

* actions fixes

* multiple minor fixes

* minor pipeline fixes

* folder rename

* fixed path references

* update state backend

* remote state update

* remove testing printenv

* adding random suffixes & descriptive resource names

* fixing env variable names

* fixing env variable names

* fixing docker push

* install aws cli in frontend pipeline

* output bucket name & sync

* TF working dir error

* aws command typo

* remove quotes from s3 URI

* temporary hardcode s3 bucket

* temporary hardcode s3 bucket

* temporary hardcode s3 bucket

* temporary hardcode s3 bucket

* dynamic frontend bucket

* dynamic frontend bucket

* dynamic frontend bucket

* adjusting workflow job triggers

* link deploy-staging to main branch

* formatting fixes and validate workflow trigger

* add missing env variables

* add missing env variables

* general cleanup

* deployment test

* initial release test

* initial release test

* initial release tests

* initial release tests

* release test

* release test

* release test

* release test

* release test

* release test

* fixing container permissions

* removed unnecessary quotes

* deployment test

* Swap env example: staging -> stage

* staging -> stage

* staging -> stage pt2.

* staging -> stage

* testing redis serveless connection

* testing redis serveless connection

* testing redis serveless connection

* testing updated secret names

* initial commit

* add backend service

* initial iac validation code

* fixed formatting

* corrected backedn-infra dependency issue

* dependency issue in backend-infra

* added init support for dependency mock outputs

* further dependency correction

* further dependency resolution

* further dependency resolution

* added backend-service verify

* testing primary action

* backend troubleshooting

* backend troubleshooting

* backend troubleshooting

* add api rewriting and x-allow secret generation

* api uri rewrite update

* add index.html function

* fix mock execution role & temporailiry disable verify-iac for add-tf-iac branch

* replacing DB secrets

* improve x-allow secret handling

* add smtp outbound

* adjusting provider requirements

* adjusting provider requirements

* general cleanup

* add cloudfront invalidation to deploy

* cleanup & add taskdef output

* comment fix & deployment test

* enable TLS for redis

* disable redis TLS until further testing

* disable redis TLS until further testing

* preparing to merge

* add production backend-service code

* merge fixes and comments for clarity

---------

Co-authored-by: Melissa Autumn <[email protected]>
  • Loading branch information
jdbass and MelissaAutumn authored May 21, 2024
1 parent 427aecc commit 4f895c9
Show file tree
Hide file tree
Showing 81 changed files with 4,213 additions and 349 deletions.
195 changes: 0 additions & 195 deletions .aws/task-definition.json

This file was deleted.

102 changes: 0 additions & 102 deletions .github/workflows/aws.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/ci-tests.yml

This file was deleted.

Loading

0 comments on commit 4f895c9

Please sign in to comment.