I use Github Actions to sync one of my git repo's subfolders (including < 200 very small MD and YAML files) to AWS S3. I then use AWS Lambda to further sync this S3 Bucket with AWS EFS.
How do I synchronise the S3 (or even better - the EFS) bucket with added/changed/deleted files back to my git repository on Github?
- I haven't been able to find any Github Actions that would offer this functionality
- As I use EC2 to mount my EFS, I thought that I might git clone and create a symbolic link to the EFS. I could then skip the S3 side-step and invoke git pull/push.
- I thought I could build a Lambda that would spin up a EC2 instance that would automatically pull those files from S3 and push a commit to my git repository.
- I could try to figure out how to use Lambda and the /tmp to formulate a commit
I haven't been able to wrap my head around what would the best way to achieve that.
Can you please push me in the right direction?
P.S. I'm not very proficient with git, this whole implementation it's a bit out of my league. :-)