This commit is contained in:
Charles E. Gormley
2024-09-08 01:36:30 -04:00
parent 85094f3ee1
commit 3cd0bcc412
5 changed files with 27 additions and 49 deletions

View File

@@ -118,7 +118,7 @@ def create_function(lambda_client, function_name, runtime, role, handler, zip_fi
return lambda_client.create_function(**config)
def get_pillow_layer_arn():
url = "https://api.klayers.cloud/api/v2/p3.11/layers/latest/us-east-1/json"
url = f"https://api.klayers.cloud/api/v2/p3.11/layers/latest/{os.getenv('AWS_REGION')}/json"
try:
response = requests.get(url)
response.raise_for_status()