This explains how the customer info data populates in Plain tickets
- Go to Plain > Settings > Customer Cards
- Click Customer Info card
- The URL is the ARN of an AWS lambda function (lambda_function.py)
- Go to AWS development > CloudFormation (select eu-central-1 region) > [plain-customer-card-1](https://1. 1. https://eu-central-1.console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/stackinfo?filteringText=&filteringStatus=active&viewNested=true&stackId=arn%3Aaws%3Acloudformation%3Aeu-central-1%3A819314934727%3Astack%2Fplain-customer-card-1%2Fb3c3bd10-a57d-11f0-a4d4-06bc1b2e9c83)
- Go to Resources tab > PlainCustomerCardFunction
- lambda_function.py is the script that calls the Tinybird endpoint with the user_email and returns the output data in Plain customer card format.
- The Function URL of the AWS lambda function matches the URL in the Plain Customer Card
- The tinybird endpoint is in oa-sot-fwd workspace > endpoints > plain-customer-card-lookup. It takes in user_email as a parameter.