File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,15 @@ def __init__(
5959 role_arn = role_arn ,
6060 )
6161
62+ lambda_env = {
63+ ** DEFAULT_ENV ,
64+ "TITILER_CMR_ROOT_PATH" : app_settings .root_path ,
65+ "TITILER_CMR_S3_AUTH_STRATEGY" : app_settings .s3_auth_strategy ,
66+ }
67+
68+ if app_settings .aws_request_payer :
69+ lambda_env ["AWS_REQUEST_PAYER" ] = app_settings .aws_request_payer
70+
6271 lambda_function = aws_lambda .Function (
6372 self ,
6473 f"{ id } -lambda" ,
@@ -72,12 +81,7 @@ def __init__(
7281 memory_size = memory ,
7382 reserved_concurrent_executions = concurrent ,
7483 timeout = Duration .seconds (timeout ),
75- environment = {
76- ** DEFAULT_ENV ,
77- "TITILER_CMR_ROOT_PATH" : app_settings .root_path ,
78- "TITILER_CMR_S3_AUTH_STRATEGY" : app_settings .s3_auth_strategy ,
79- "AWS_REQUEST_PAYER" : app_settings .aws_request_payer ,
80- },
84+ environment = lambda_env ,
8185 log_retention = logs .RetentionDays .ONE_WEEK ,
8286 role = iam_reader_role ,
8387 )
You can’t perform that action at this time.
0 commit comments