Skip to content

Commit

Permalink
Add memory and timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Almeida committed May 4, 2022
1 parent cc88675 commit 6952b0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stack/titiler_sentinel.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def create_package(code_dir: str) -> pulumi.FileArchive:
s3_key=lambda_obj.key,
runtime="python3.8",
role=iam_for_lambda.arn,
memory_size=1024,
memory_size=3008,
timeout=10,
handler="handler.handler",
environment=aws.lambda_.FunctionEnvironmentArgs(
variables={
Expand All @@ -83,6 +84,7 @@ def create_package(code_dir: str) -> pulumi.FileArchive:
"AWS_REQUEST_PAYER": "requester",
},
),
opts=pulumi.ResourceOptions(depends_on=[lambda_obj]),
)

lambda_s3_policy = aws.iam.Policy(
Expand Down

0 comments on commit 6952b0a

Please sign in to comment.