{"id":31106047,"url":"https://github.com/m-radzikowski/aws-website-cms","last_synced_at":"2025-09-17T04:52:36.566Z","repository":{"id":38433841,"uuid":"416485120","full_name":"m-radzikowski/aws-website-cms","owner":"m-radzikowski","description":"Gatsby website with Prismic CMS automatically updated on AWS.","archived":false,"fork":false,"pushed_at":"2023-01-24T09:18:00.000Z","size":4223,"stargazers_count":5,"open_issues_count":16,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-03-05T09:52:00.203Z","etag":null,"topics":["aws","cms","gatsby","headless-cms","serverless"],"latest_commit_sha":null,"homepage":"https://betterdev.blog/gatsby-website-with-headless-cms-on-aws","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/m-radzikowski.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":"2021-10-12T20:18:49.000Z","updated_at":"2023-02-23T07:38:55.000Z","dependencies_parsed_at":"2023-02-13T19:47:51.321Z","dependency_job_id":null,"html_url":"https://github.com/m-radzikowski/aws-website-cms","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/m-radzikowski/aws-website-cms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-radzikowski%2Faws-website-cms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-radzikowski%2Faws-website-cms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-radzikowski%2Faws-website-cms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-radzikowski%2Faws-website-cms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-radzikowski","download_url":"https://codeload.github.com/m-radzikowski/aws-website-cms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-radzikowski%2Faws-website-cms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275537152,"owners_count":25482345,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","cms","gatsby","headless-cms","serverless"],"created_at":"2025-09-17T04:52:34.462Z","updated_at":"2025-09-17T04:52:36.555Z","avatar_url":"https://github.com/m-radzikowski.png","language":"JavaScript","readme":"# AWS serverless website with headless CMS\n\n[Gatsby](https://www.gatsbyjs.com/) website\nwith [Prismic CMS](https://prismic.io/).\n\nThe website is automatically built and deployed to AWS\nfrom GitHub Actions after:\n\n- push to the `main` branch,\n- publishing changes in Prismic CMS.\n\n![CI pipeline and architecture](./.github/architecture.png)\n\nFor more details, see the article with full description:\n[Headless CMS with Gatsby on AWS for $0.00 per month](https://betterdev.blog/gatsby-website-with-headless-cms-on-aws)\n\n## Development\n\n### Set environment variables\n\nCreate `.env` file:\n\n```dotenv\nPRISMIC_REPO_NAME=\nPRISMIC_CUSTOM_TYPES_API_TOKEN=\n```\n\n\"Repo name\" is the part of the Prismic CMS domain before the `.prismic.io`.\n\nCustom Types API token can be created in Prismic → API \u0026 Security → Custom Types API.\n\n### Start Gatsby\n\n```bash\nyarn run start\n```\n\n## Deployment\n\n### Create SSM parameters\n\n| Name                               | Type           | Value                                                             |\n|:-----------------------------------|:---------------|:------------------------------------------------------------------|\n| `/{service}/{stage}/prismicSecret` | `SecureString` | Generated random value                                            |\n| `/{service}/{stage}/github/user`   | `String`       | Repository user, here: `m-radzikowski`                            |\n| `/{service}/{stage}/github/repo`   | `String`       | Repository name, here: `aws-website-cms`                   |\n| `/{service}/{stage}/github/token`  | `SecureString` | GitHub Personal Access Token with `repo` access to the repository |\n\nPut the Serverless service name as `{service}` (by default \"cmswebsite\")\nand stage name as `{stage}` (by default \"dev\").\n\n### Deploy stack\n\n```bash\nyarn run deploy\n```\n\n### Setup Prismic webhook\n\nIn Prismic, go to Settings → Webhooks and add new webhook.\n\nFor URL, pass API Gateway URL with `/update` endpoint, for example:  \n`https://xxxxxxxxxx.execute-api.eu-west-1.amazonaws.com/update`.\n\nFor Secret, pass the same value as for `prismicSecret` SSM parameter.\n\n### See website\n\nWebsite is hosted by CloudFront. You can find the CloudFront Distribution ID\nin the CloudFormation. Then, in CloudFront, you can find the website domain name.\n\n## CI\n\nIn GitHub repository Settings go to Secrets and add repository secrets:\n\n- `AWS_ACCESS_KEY_ID`\n- `AWS_SECRET_ACCESS_KEY`\n- `PRISMIC_REPO_NAME`\n- `PRISMIC_CUSTOM_TYPES_API_TOKEN`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-radzikowski%2Faws-website-cms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-radzikowski%2Faws-website-cms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-radzikowski%2Faws-website-cms/lists"}