This simple eventing function is written as a working example of how to ensure mutations from your Couchbase bucket(s) are copied to an AWS S3 bucket.
For this eventing function to work properly, you must create an AWS S3 bucket in your account. Keep in mind, that you will have to set the appropriate permissions on your bucket that adhere to you specific security needs. We will no make any recommendations on security best practices, as this is dependent on your environment and business requirements.
Step 3: Configure your eventing function in your Couchbase cluster. The settings for your function will be dependent on your needs, so no formal recommendations are made here.
Step 4: Copy this eventing function into your Eventing node on your Couchbase cluster and save the function---do NOT deploy it yet!
Step 6: Deploy your Eventing function and either create a new document in your bucket or modify an existing document. Once the mutation is complete, check your S3 bucket to ensure the document was written to S3.
- Note: the most common issue that we have seen, is around S3 bucket permissions. So, if your documents are not being written as expected, double check your permissions.