Commit graph

310 commits

Author SHA1 Message Date
Daniel Roth
c91193ed22 use managed cloudfront caching and forwarding policies instead of defining our own 2026-03-17 09:42:16 +00:00
Daniel Roth
867cebc9f2 add cloudwatch logging to api gateway deployment 2026-03-17 09:16:21 +00:00
Daniel Roth
98ad7d1d7c disable query string behaviour caching as caching time is set to 0 2026-03-16 16:06:20 +00:00
Daniel Roth
ce68470f25 Replace forwarded_values with cache_policy and origin_request_policy for API origin 2026-03-16 15:11:59 +00:00
Daniel Roth
976fd0b376 set caching behaviour based on request origin - api v s3 2026-03-16 12:11:15 +00:00
Daniel Roth
23df9442c9 revert to using invoke_url but correct the replace method 2026-03-16 09:39:17 +00:00
Daniel Roth
1e1bd7ead2 use api_endpoint rather than invoke_url in cdn deployment 2026-03-13 15:42:57 +00:00
Daniel Roth
4921217b78 empty aliases 2026-03-13 15:20:33 +00:00
Daniel Roth
928e417373 delete comment 2026-03-13 15:18:35 +00:00
Daniel Roth
1056dda939 set aliases 2026-03-13 15:17:18 +00:00
Daniel Roth
e78900f0b6 correct more terraform syntax 2026-03-13 14:13:14 +00:00
Daniel Roth
53bbb57a67 fix incorrect terraform syntax 2026-03-13 14:01:43 +00:00
Daniel Roth
4e6dd546ce make sure domain_name is exported from lambda_with_api_gateway for use by fast-api 2026-03-13 13:38:11 +00:00
Daniel Roth
b96b71a05a fix incorrect variables and references 2026-03-13 11:59:59 +00:00
Daniel Roth
ddcfa75a03 address PR 2026-03-13 11:16:41 +00:00
Daniel Roth
b7bee7486c deploy cdn as its own job, depending on fastapi 2026-03-13 09:51:48 +00:00
Daniel Roth
6e05bd2352 delete unused stuff 2026-03-12 17:31:59 +00:00
Daniel Roth
49e544d10f add cloudfront for domain setting 2026-03-12 17:29:47 +00:00
Daniel Roth
3cadecfe9b from domain_name from engine environment 2026-03-12 14:47:55 +00:00
Daniel Roth
83e502a361 from domain_name from engine environment 2026-03-12 14:47:28 +00:00
Daniel Roth
2d5357ed7a ensure pip install takes place every run 2026-03-12 13:51:04 +00:00
Daniel Roth
7835a7e982 correctly attach sqs policy to fastapi app 2026-03-12 13:21:27 +00:00
Daniel Roth
80cbb6027b move the depends_on pip install to the correct place 2026-03-12 12:26:04 +00:00
Daniel Roth
93915efd9d ensure pip install runs before zip by moving the install command to lambda_with_api_gateway 2026-03-12 12:02:55 +00:00
Daniel Roth
b55b601c15 ignore infrastucture file when zipping python 2026-03-12 11:45:25 +00:00
Daniel Roth
604dea8a2a output tfstate bucket name 2026-03-12 11:25:38 +00:00
Daniel Roth
db9f6c1616 remove duplicate variable from main.tf 2026-03-12 11:08:27 +00:00
Daniel Roth
5f948da2ec delete duplicate variable in lambda_service_with_zip 2026-03-12 10:59:30 +00:00
Daniel Roth
597fb2e764 modify key to match tfstate path 2026-03-12 10:47:27 +00:00
Daniel Roth
c58cfee0b6 upload zip to s3 rather than copying via api 2026-03-12 10:41:08 +00:00
Daniel Roth
5a6294b79e exclude tests from lambda zip 2026-03-11 17:45:15 +00:00
Daniel Roth
182fb8931e correct environment variables and policy definition 2026-03-11 17:23:38 +00:00
Daniel Roth
296166d568 add slash at end of path 2026-03-11 17:06:33 +00:00
Daniel Roth
c7d0a45107 fix path and add missing env vars 2026-03-11 17:02:18 +00:00
Daniel Roth
325d2f2cc1 upgrade terraform AWS provider 2026-03-11 15:38:16 +00:00
Daniel Roth
8722d0cce4 correct s3 policy name 2026-03-11 14:46:10 +00:00
Daniel Roth
bf8e65be1f fix typo in tfstate s3 location 2026-03-11 14:36:13 +00:00
Daniel Roth
3b41ea4a23 correct use of tfstate outputs in fast api terraform 2026-03-11 14:22:19 +00:00
Daniel Roth
e8c839f3e4 no single line variables with defaults. and typos 2026-03-11 12:02:22 +00:00
Daniel Roth
496ec22705 fix typos 2026-03-11 11:49:27 +00:00
Daniel Roth
1a16139680 comment out DOMAIN_NAME 2026-03-11 11:39:24 +00:00
Daniel Roth
05843ab462 comment out custom_domain_endpoint in outputs.tf 2026-03-11 10:56:09 +00:00
Daniel Roth
7cade00db0 commented out custom domain stuff for now 2026-03-11 10:54:44 +00:00
Daniel Roth
510e273634 addres JTK PR: remove pip upgrade after installing requirements 2026-03-10 16:30:27 +00:00
Daniel Roth
9c4a8e11db correct s3 policy attachment 2026-03-10 15:15:21 +00:00
Daniel Roth
f3d51c4c7c sqs permissions 2026-03-10 14:59:46 +00:00
Daniel Roth
891ccd4a8b fast api s3 policy 2026-03-10 13:55:45 +00:00
Daniel Roth
783ddd7be0 add some comments 2026-03-10 12:09:52 +00:00
Daniel Roth
f8c279b3cf read queue names from terraform state 2026-03-10 12:04:53 +00:00
Daniel Roth
dcb3efdb7e update fast-api terraform 2026-03-10 11:42:06 +00:00