changed Lambda demo to support AWS Academy and create individual bucket for group with globally unique name in S3

This commit is contained in:
Sebastian Rieger
2022-06-20 13:04:17 +02:00
parent 1f4a435d84
commit f081a50a4a
4 changed files with 37 additions and 2 deletions

View File

@ -36,8 +36,10 @@ except lClient.exceptions.ResourceNotFoundException:
streamingBody = response['Payload']
result = streamingBody.read()
jsonResult = json.loads(result)
print(json.dumps(response, indent=4, sort_keys=True, default=str))
print('Payload:\n' + str(result))
print('Payload:\n' + str(result) + "\n")
print("Counter is now at: " + jsonResult['headers']['x-hsfd-counter'])