cds-snc / simplify-privacy-statements-V2

starter-app repo based version of privacy app.
https://simplify-privacy-statements.alpha.canada.ca
MIT License
5 stars 1 forks source link

Terraform: create `app` module #213

Closed patheard closed 1 year ago

patheard commented 1 year ago

Description

Create a /terragrunt/aws/app Terraform module and the /terragrunt/env/production/app config that creates the Lambda function and Lambda function URL.

Todo

Related

patheard commented 1 year ago

This is blocked by #214.

omartehsin1 commented 1 year ago

Complete and merged

omartehsin1 commented 1 year ago

Currently debugging why Lambda server keeps timing out and giving us a 502 error. Likely has to do with the security groups (ingress, egress) not having the right configurations to access EFS.

Will need to adjust ingress and add in an egress rule.

omartehsin1 commented 1 year ago

Fixed issue, needed to add an egress rule for lambda to be able to access the EFS using port 2049

Also updated EFS security group to to EFS security group IDs from Lambda security group IDs