Commit graph

3236 commits

Author SHA1 Message Date
Daniel Roth
f3e77beefd generate new role for reading from s3 bucket and attach it to the lambda 2026-02-09 14:13:06 +00:00
Daniel Roth
68b12c7344 trigger rebuild and deploy 2026-02-09 12:49:32 +00:00
Daniel Roth
db0431f413 recomment env.stage == 'prod' 2026-02-09 12:20:44 +00:00
Daniel Roth
2e424e227e apply shared stack to generate new s3 bucket 2026-02-09 12:19:17 +00:00
Daniel Roth
56e78350fa configure allowed_origins 2026-02-09 12:04:24 +00:00
Daniel Roth
a2cdf0eb57 fix bucketname typo 2026-02-09 12:02:13 +00:00
Daniel Roth
092d95fa9d create new s3 bucket for condition data 2026-02-09 11:45:59 +00:00
Daniel Roth
e1835b2cfa remove duplicates from .env.local 2026-02-09 10:16:18 +00:00
Daniel Roth
0e4da14673 get lookup file bucket and key from payload per message 2026-02-09 09:56:41 +00:00
Daniel Roth
6dbb8149fd reinstate used github secrets 2026-02-09 09:37:43 +00:00
Daniel Roth
9a9ea9fbaa remove unused bits of config 2026-02-09 09:36:41 +00:00
Daniel Roth
f41da9e93f remove commented out deployment jobs 2026-02-09 09:28:17 +00:00
Daniel Roth
daaa3c560f revert changes to _deploy_lambda 2026-02-09 09:20:50 +00:00
Daniel Roth
bae1735e23 try using shared resource to fetch secrets 2026-02-06 16:22:53 +00:00
Daniel Roth
f033b144c2 including environment in vars not environment_vars 2026-02-06 16:04:57 +00:00
Daniel Roth
d44fdcd01c try again 2026-02-06 15:22:36 +00:00
Daniel Roth
2fe9e67ea9 ensure env vars string is correct format 2026-02-06 15:16:15 +00:00
Daniel Roth
4c0713b415 include env vars in condition-etl lambda variabls 2026-02-06 15:06:46 +00:00
Daniel Roth
78caa1e6ae format env vars correctly in terraform plan 2026-02-06 14:49:53 +00:00
Daniel Roth
aff3113d52 only load env vars to lambda during deployment if they are provided 2026-02-06 14:44:50 +00:00
Daniel Roth
dda05a4f33 include environment vars in lambda terraform plan 2026-02-06 14:34:43 +00:00
Daniel Roth
807d94ca3c test again with limited imports 2026-02-06 13:34:08 +00:00
Daniel Roth
948c238468 include environment_vars on deploy_lambda workflow 2026-02-06 13:25:58 +00:00
Daniel Roth
321a4505fb no need to get region as env var 2026-02-06 13:23:15 +00:00
Daniel Roth
f66aa25268 new terraform job to fetch db credentials from secrets manager 2026-02-06 13:19:36 +00:00
Daniel Roth
04bc8a1407 include psycopg2 2026-02-06 11:51:31 +00:00
Daniel Roth
3445060ef2 check db user value 2026-02-06 11:46:58 +00:00
Daniel Roth
9ae81c1099 reinstate build args and check whether imports work now 2026-02-06 11:39:53 +00:00
Daniel Roth
f10951f81d try without build args 2026-02-06 11:24:00 +00:00
Daniel Roth
b8283abc45 try getting all db vars from github secrets 2026-02-06 11:16:34 +00:00
Daniel Roth
9c7678865f add env to step 2026-02-05 17:32:32 +00:00
Daniel Roth
02a0e83a39 correct variable name 2026-02-05 17:28:16 +00:00
Daniel Roth
b42996a3c8 try dev_DB_HOST 2026-02-05 17:25:17 +00:00
Daniel Roth
bf1bb72dd7 echo variables to check values 2026-02-05 16:58:15 +00:00
Daniel Roth
7bc5c4e34d echo variables to check values 2026-02-05 16:55:41 +00:00
Daniel Roth
216f32709f changes to try and get it to work 2026-02-05 16:47:43 +00:00
Daniel Roth
ee2eba11e5 debugging prints 2026-02-05 16:38:16 +00:00
Daniel Roth
c21de78020 pass secrets to build args via env vars 2026-02-05 16:33:12 +00:00
Daniel Roth
10088625ae add secret back in 2026-02-05 16:26:19 +00:00
Daniel Roth
241d3f7d77 add additional env 2026-02-05 16:25:25 +00:00
Daniel Roth
688290486a revert back to working version 2026-02-05 16:24:13 +00:00
Daniel Roth
0fa9f8bd43 get db host from secrets 2026-02-05 16:19:58 +00:00
Daniel Roth
10765ae0a4 get db host from secrets 2026-02-05 16:10:21 +00:00
Daniel Roth
44f75c355a correct quotes in build args 2026-02-05 16:04:08 +00:00
Daniel Roth
33770e263c modify build args 2026-02-05 15:59:37 +00:00
Daniel Roth
c837453aed Write build args and removes line breaks 2026-02-05 15:38:48 +00:00
Daniel Roth
2a88271a77 remove spurious spaces 2026-02-05 15:32:46 +00:00
Daniel Roth
b006c53f6f fix previous commit 2026-02-05 15:27:43 +00:00
Daniel Roth
f2a1a76735 test environment variable 2026-02-05 15:24:49 +00:00
Daniel Roth
39d4e97de7 typo fix 2026-02-05 13:35:37 +00:00