Company
Date Published
Author
Edwin Maldonado
Word count
716
Language
English
Hacker News points
None

Summary

This tutorial explains how to set up automatic backups for a Contentful Space using an AWS Lambda Function and CloudWatch for scheduling. The process involves generating a backup of the space, uploading it to S3, and then storing it in a bucket. A new AWS Lambda function is created with a NodeJS script that collects export options, downloads the backup, saves it as a JSON file locally, uploads it to an S3 Bucket, and executes the backup on a daily basis using CloudWatch. The function uses Environment variables for configuration and IAM Roles for communication with S3. The final solution involves compressing the deployment package, uploading it to the lambda's function code section, testing it, and scheduling it to run daily using CloudWatch.