mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
save
This commit is contained in:
parent
3133fb74be
commit
00b699ec24
3 changed files with 3 additions and 3 deletions
|
|
@ -5,10 +5,10 @@ from etl.read_stuff_from_s3_example import print_hello_from_etl_module
|
|||
|
||||
def handler(event, context):
|
||||
print("Outside try statment")
|
||||
print_hello_from_etl_module()
|
||||
try:
|
||||
print("show me something.. anything...")
|
||||
s3_uri = event.get("file_location")
|
||||
print_hello_from_etl_module()
|
||||
if not s3_uri:
|
||||
return {
|
||||
"statusCode": 400,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ resource "aws_lambda_function" "extractor_and_loader" {
|
|||
function_name = "extractor-and-loader"
|
||||
role = aws_iam_role.lambda_exec_role.arn
|
||||
package_type = "Image"
|
||||
image_uri = "${aws_ecr_repository.extractor_and_loader.repository_url}:latest3"
|
||||
image_uri = "${aws_ecr_repository.extractor_and_loader.repository_url}:latest"
|
||||
timeout = 30
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,4 +41,4 @@ def download_data_from_s3(s3_uri):
|
|||
return create_temp_file(data, file_name)
|
||||
|
||||
# Example usage
|
||||
download_data_from_s3("s3://retrofit-energy-assessments-dev/JAFFERSONS ENERGY CONSULTANTS/VDE001/12103116/docs & plans/77 Perryn Road, W3 7LT EPR.pdf")
|
||||
# download_data_from_s3("s3://retrofit-energy-assessments-dev/JAFFERSONS ENERGY CONSULTANTS/VDE001/12103116/docs & plans/77 Perryn Road, W3 7LT EPR.pdf")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue