feat(chalice): refactored
This commit is contained in:
parent
5f2f88cf9d
commit
dff1807ad5
4 changed files with 7 additions and 17 deletions
1
ee/api/.gitignore
vendored
1
ee/api/.gitignore
vendored
|
|
@ -241,6 +241,7 @@ Pipfile
|
|||
/routers/subs/__init__.py
|
||||
/routers/__init__.py
|
||||
/chalicelib/core/assist.py
|
||||
/auth/__init__.py
|
||||
/auth/auth_apikey.py
|
||||
/build.sh
|
||||
/routers/base.py
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
from chalicelib.utils.s3 import client
|
||||
from decouple import config
|
||||
|
||||
def tag_file( session_id, tag_key='retention', tag_value='vault'):
|
||||
from chalicelib.utils.s3 import client
|
||||
|
||||
|
||||
def tag_file(session_id, tag_key='retention', tag_value='vault'):
|
||||
return client.put_object_tagging(
|
||||
Bucket=config("sessions_bucket"),
|
||||
Key=session_id,
|
||||
# VersionId='string',
|
||||
# ContentMD5='string',
|
||||
# ChecksumAlgorithm='CRC32'|'CRC32C'|'SHA1'|'SHA256',
|
||||
Tagging={
|
||||
'TagSet': [
|
||||
{
|
||||
|
|
@ -15,16 +14,5 @@ def tag_file( session_id, tag_key='retention', tag_value='vault'):
|
|||
'Value': tag_value
|
||||
},
|
||||
]
|
||||
},
|
||||
# ExpectedBucketOwner='string',
|
||||
# RequestPayer='requester'
|
||||
}
|
||||
)
|
||||
|
||||
# generate_presigned_url(
|
||||
# 'put_object',
|
||||
# Params={
|
||||
# 'Bucket': bucket,
|
||||
# 'Key': key
|
||||
# },
|
||||
# ExpiresIn=expires_in
|
||||
# )
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ rm -rf ./routers/crons/__init__.py
|
|||
rm -rf ./routers/subs/__init__.py
|
||||
rm -rf ./routers/__init__.py
|
||||
rm -rf ./chalicelib/core/assist.py
|
||||
rm -rf ./auth/__init__.py
|
||||
rm -rf ./auth/auth_apikey.py
|
||||
rm -rf ./build.sh
|
||||
rm -rf ./routers/base.py
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue