feat(chalice): sourcemaps reader support multi-envs
This commit is contained in:
parent
46dcd82558
commit
449ce64cb3
1 changed files with 5 additions and 4 deletions
|
|
@ -9,11 +9,12 @@ def get_original_trace(key, positions):
|
|||
"positions": positions,
|
||||
"padding": 5,
|
||||
"bucket": config('sourcemaps_bucket'),
|
||||
"S3_HOST": config('S3_HOST'),
|
||||
"S3_KEY": config('S3_KEY'),
|
||||
"S3_SECRET": config('S3_SECRET'),
|
||||
"region": config('sessions_region')
|
||||
"S3_KEY": config('S3_KEY', default=config('AWS_ACCESS_KEY_ID')),
|
||||
"S3_SECRET": config('S3_SECRET', default=config('AWS_SECRET_ACCESS_KEY')),
|
||||
"region": config('sessions_region', default=config('AWS_DEFAULT_REGION'))
|
||||
}
|
||||
if len(config('S3_HOST', default="")) > 0:
|
||||
payload["S3_HOST"] = config('S3_HOST')
|
||||
try:
|
||||
r = requests.post(config("sourcemaps_reader"), json=payload,
|
||||
timeout=config("sourcemapTimeout", cast=int, default=5))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue