File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
terraform/modules/s3pypi/basic_auth Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 33import json
44import logging
55from dataclasses import dataclass
6+ from functools import lru_cache
67
78import boto3
89
@@ -43,6 +44,7 @@ class User:
4344 password_salt : str
4445
4546
47+ @lru_cache (maxsize = 1024 )
4648def get_user (domain : str , username : str ) -> User :
4749 data = boto3 .client ("ssm" , region_name = region ).get_parameter (
4850 Name = f"/s3pypi/{ domain } /users/{ username } " ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ data "archive_file" "basic_auth" {
2626resource "aws_lambda_function" "basic_auth" {
2727 function_name = " s3pypi-basic-auth-${ replace (var. domain , " ." , " -" )} "
2828
29- runtime = " python3.8 "
29+ runtime = " python3.14 "
3030 timeout = 5
3131 publish = true
3232
You can’t perform that action at this time.
0 commit comments