in source/customresources/custom-resource-py/lib/demo.py [0:0]
def s3_deploy(config):
with open('./console-manifest.json') as file:
manifest = json.load(file)
print('UPLOADING FILES::')
for key in manifest:
s3.copy_object(
Bucket = config['DemoBucket'],
CopySource = config['SrcBucket']+'/'+config['SrcPath'] + '/'+key,
Key = key
)
print(key)
print('CREATE EXPORT FILE::')
response = s3.put_object(
Bucket=config['DemoBucket'],
Body=config['Exports'],
Key='console/assets/js/exports.js'
)
print('RESPONSE::{}'.format(response))
return