使用Serverless云函数把COS对象存储的元信息存储到ES中
使用Serverless云函数把COS对象存储的元信息存储到ES中,同步的元信息字段有:
pip install Elasticsearch -t ./
appid = 1 # 请替换为您的 APPID
secret_id = u'x' # 请替换为您的 SecretId
secret_key = u'y' # 请替换为您的 SecretKey
region = u'ap-guangzhou' # 请替换为您bucket 所在的地域
token = ''
esEndPoint = '1.1.1.1' # 请替换为您的ES地址
zip cosMeta2es.zip * -r