Added API mapping and custom Domain
This commit is contained in:
@@ -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}')
|
||||
|
||||
Reference in New Issue
Block a user