Skip to content

Commit

Permalink
refactor: Terraform to seed approver and donors test data to Firestore (
Browse files Browse the repository at this point in the history
#644)

* add terraform to seed approver to firebase

* create template dir

* move approvers template file

* terraformize donors test data

* incorporate bool toggle for seeding test data

* add missing count.index to document_id

* correction to test data file path

* add project parameter to firestore resources

* terraform fmt

Co-authored-by: Roger Martinez <rogerthatdev@gmail.com>
  • Loading branch information
rogerthatdev and Roger Martinez committed Aug 26, 2022
1 parent faf16f7 commit c6b0153
Show file tree
Hide file tree
Showing 5 changed files with 988 additions and 0 deletions.
14 changes: 14 additions & 0 deletions terraform/modules/emblem-app/files/templates/approvers.tftpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"active": {
"booleanValue": true
},
"email": {
"stringValue": "${email}"
},
"kind": {
"stringValue": "approvers"
},
"name": {
"stringValue": "Seeded test user"
}
}
11 changes: 11 additions & 0 deletions terraform/modules/emblem-app/files/templates/donors.tftpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": {
"stringValue": "${name}"
},
"email": {
"stringValue": "${email}"
},
"mailing_address": {
"stringValue": "${mailing_address}"
}
}
Loading

0 comments on commit c6b0153

Please sign in to comment.