This code performs the following operations -
- Reads the file from your AWS S3 bucket using boto3
- Compares the file with your local file using Python difflib
- Generates an HTML and PNG report of the difference
- Sends the report to a slack channel using Python Slack SDK
- Uploads the new file and report to AWS S3 using boto3
To run the main.py, the following values are to be passed as command line argunments -
- AWS account access key
- AWS account secret key
- AWS S3 bucket name
- File name in AWS S3
- Slack App OAuth Token
- Slack Channel Id