Commit 61828c52 authored by Carolina Gilabert's avatar Carolina Gilabert

Sorted out connectivity between ALB and Lambda (added SG and headers).

parent 6da7f861
......@@ -24,6 +24,11 @@ exports.handler = async (event) => {
// TODO implement
const response = {
statusCode: 200,
statusDescription: '200 OK',
isBase64Encoded: false,
headers: {
"Content-Type": "text/json; charset=utf-8"
},
body: JSON.stringify(objects),
};
......
......@@ -117,6 +117,7 @@ resource "aws_lb" "object_finder" {
internal = false
load_balancer_type = "application"
enable_deletion_protection = true
security_groups = ["${aws_security_group.allow_all.id}"]
subnets = ["${aws_default_subnet.default_az1.id}", "${aws_default_subnet.default_az2.id}"]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment