-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ayr 446/flask app in lambda #71
Conversation
ab8e80c
to
ce1c27c
Compare
PR looks clear to me with a great update to the README. |
This ok to get you started. The IAM policy we can slim down in the following days. |
Might want to consider adding a lambda timeout. Think it's 30 seconds by default which is probably too high e.g. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems ok to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very detailed explanation in readme.md -looks good
Please check for default lambda timeout and may be reduce to a level where it has to set minimum value
So from when I have run this, it doesnt seem to overwright any of the ip stuff you have set manually. I believe that is because I am not attaching a policy for the API Gateway but just for the lambda. If we were to do that we would need to make sure the ips wereset appropriately and were filled in by env vars in github actions so they werent commited to the repo, but I think for now we can get away without it. Worth tidying it up in a follow up PR dedicated to the API Gateway policy if you agree? And yes you are right, most of that policy is uneeded, we currently just need the Paramter store access so I will remove everything apart from that. And then once we sort the rds stuff I will add that in as needed. |
good shout, can do this here |
e1ad766
to
e93c74d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #71 +/- ##
=======================================
Coverage 78.94% 78.94%
=======================================
Files 7 7
Lines 266 266
=======================================
Hits 210 210
Misses 56 56 ☔ View full report in Codecov by Sentry. |
have added apigateway policy with ip whitelisting being set by env vars |
4f2985c
to
bc0ab1f
Compare
…ed README on how to run zappa deployments manually
…ed for the lambda
acb959f
to
78f2861
Compare
Changes in this PR
zappa_settings.json.template
andaws_attach_policy.json
README.md
so devs can run manual deployments to a Lambda-APIGateway set up on AWS, given a AWS profile of their choice, from their local machines.JIRA ticket
https://national-archives.atlassian.net/jira/software/projects/AYR/boards/66?selectedIssue=AYR-446&text=poetry