Added API mapping and custom Domain

This commit is contained in:
2024-05-30 14:17:04 +02:00
parent d7903bf59a
commit 8de6d1d7b6
8 changed files with 587 additions and 117 deletions

View File

@@ -9,6 +9,7 @@ s3_client = None
bucket_config = ''
bucket_data = ''
git_version = ''
api_version = ''
class RequestParams(BaseModel):
id: str
@@ -21,13 +22,14 @@ class Content(BaseModel):
url: Optional[str] = None
def lambda_handler(event: dict, context):
global s3_client, bucket_config, bucket_data, git_version
global s3_client, bucket_config, bucket_data, git_version, api_version
if s3_client is None:
print("Init Function")
bucket_config = os.environ.get('BUCKET_CONFIG', 'standout-config')
bucket_data = os.environ.get('BUCKET_DATA', 'standout-data')
git_version = os.environ.get('GIT_VERSION', '00000000')
api_version = os.environ.get('API_VERSION', 'v1')
print(f' Version: {git_version}')
print(f' Bucket Data: {bucket_data}')