{"id":21456563,"url":"https://github.com/mtliendo/serverless-contact-form","last_synced_at":"2025-06-27T20:37:20.922Z","repository":{"id":46063280,"uuid":"218430703","full_name":"mtliendo/serverless-contact-form","owner":"mtliendo","description":"An example of how to create a serverless contact form using GraphQL, Lambda, and SES.","archived":false,"fork":false,"pushed_at":"2021-11-16T22:01:52.000Z","size":658,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T17:52:40.024Z","etag":null,"topics":["aws","awsamplify","graphql","lambda","ses"],"latest_commit_sha":null,"homepage":"https://master.d2q078pxl9k9t4.amplifyapp.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtliendo.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-30T02:54:37.000Z","updated_at":"2021-10-25T09:26:33.000Z","dependencies_parsed_at":"2022-09-17T23:22:46.547Z","dependency_job_id":null,"html_url":"https://github.com/mtliendo/serverless-contact-form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtliendo/serverless-contact-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtliendo%2Fserverless-contact-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtliendo%2Fserverless-contact-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtliendo%2Fserverless-contact-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtliendo%2Fserverless-contact-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtliendo","download_url":"https://codeload.github.com/mtliendo/serverless-contact-form/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtliendo%2Fserverless-contact-form/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262329986,"owners_count":23294820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","awsamplify","graphql","lambda","ses"],"created_at":"2024-11-23T05:16:03.264Z","updated_at":"2025-06-27T20:37:20.901Z","avatar_url":"https://github.com/mtliendo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Contact Form\n\n🚨Video Series and Blog Post coming soon!🚨\n\nThis is an example of how to use [AWS Amplify](https://aws-amplify.github.io/) to create a contact form. The form is contained within a component so that it may live at any depth in your application.\n\n### TODO\n\n- initialize project✔\n  - Gatsby\n- create and style the form component✔\n  - CSS Modules\n  - CSS Grid\n- add AWS Amplify to the project✔\n- create backend services✔\n  - appsync api via api token\n  - lambda\n  - ses env for prod and dev testing\n- configure custom resolver to use AWS SES✔\n- update UI to handle Success, Pending, and Failure cases\n- document how to get started with `amplify init --app ghURL`\n  - How to add inline policy for lambda to contact SES\n\n### Wishlist\n\nExtend project by creating a [plugin](https://aws-amplify.github.io/docs/cli-toolchain/plugins) for the function service that adds the policy needed for a lambda to talk to SES and sends a verification email. For integrating with the AWS SDK, it looks like [this would help](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SES.html#verifyEmailIdentity-property). This is the policy:\n\n```json\n{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Sid\": \"VisualEditor0\",\n            \"Effect\": \"Allow\",\n            \"Action\": \"ses:SendEmail\",\n            \"Resource\": \"arn:aws:ses:\u003cregion\u003e:\u003caccountID:identity/\u003cverified@email.com\u003e\"\n        }\n    ]\n}\n\n```\n\nRemember to properly configure the lambda [to use SES](https://github.com/mtliendo/serverless-contact-form/blob/master/amplify/backend/function/contactfunction/src/index.js).  To see all the fields, check out [the official docs](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/ses-examples-sending-email.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtliendo%2Fserverless-contact-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtliendo%2Fserverless-contact-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtliendo%2Fserverless-contact-form/lists"}