Skip to content

Conversation

@RajChowdhury240
Copy link

In this script, the changes i made to make it better :

1.The AWS S3 resource is created outside the handler function.
2. The timestamp format is pre-compiled as TIMESTAMP_FORMAT.
3. JSON encoding and decoding are avoided for the body parameter.
4. Error handling is done using a try-except block.

In this script, the changes i made to make it better :

1.The AWS S3 resource is created outside the handler function.
2. The timestamp format is pre-compiled as TIMESTAMP_FORMAT.
3. JSON encoding and decoding are avoided for the body parameter.
4. Error handling is done using a try-except block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant