Automate Candidate's Certificate Generation
Last updated
Was this helpful?
Last updated
Was this helpful?
This is a follow up from the on using signed image as building block for certificate.
In this guide, we will explore one of the techniques to automate the generation of signed URL.
You will need,
AWS account to access AWS Lambda
Airtable account
Integromat account
A working template to generate secure signed image. Please check the previous guide linked above.
This is the part where very small amount of code is involved. So we will do this first.
Create a new lambda function named secure_signed_image
.
Paste the following modified code. In this example, the modification is similar to what we had from the previous tutorial. It is modified to work with AWS lambda function.
We need to set up HTTP trigger so we can call the URL publicly and execute our lambda function. One additional step we need to take care of is to ensure our trigger is proxied to our lambda so we can capture the query string properly.
The following video shows the setup one-by-one.
We will get our candidates' name from table in Airtable. Airtable needs to be set in certain ways to allow for Integromat automation.
For this example, we create 3 columns in which 2 columns are text and the last column (Last Modified) is a special Airtable column that tracks the last modified time. For this particular column, we only set the last modified time when the Name column is updated.
See the video for the process
Now that we have launched our function to AWS Lambda and Airtable ready for integration, we can call the lambda function anytime to get back the signed URL.
The workflow basically works like this,
Airtable module watches for record update (this is why we need the Last Modified column)
Get the value from the Name column and send a GET request to our lambda function with the name as a query string parameter. We also URL encode it.
Once we get back the URL, we update the related record with the generated signed URL.
You can work on similar integration with Google Sheet.