{"id":16744973,"url":"https://github.com/bogdal/aws-cdk-website","last_synced_at":"2026-02-17T14:31:13.145Z","repository":{"id":41777432,"uuid":"198220950","full_name":"bogdal/aws-cdk-website","owner":"bogdal","description":"AWS CDK definition of infrastructure for Single Page Applications.","archived":false,"fork":false,"pushed_at":"2022-12-09T19:38:31.000Z","size":227,"stargazers_count":4,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T14:03:22.288Z","etag":null,"topics":["aws","aws-cdk","cdk","provisioning","pwa","rendertron","spa","ssr","website"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/bogdal.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-07-22T12:40:18.000Z","updated_at":"2021-12-31T15:37:12.000Z","dependencies_parsed_at":"2023-01-25T15:55:13.087Z","dependency_job_id":null,"html_url":"https://github.com/bogdal/aws-cdk-website","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bogdal/aws-cdk-website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdal%2Faws-cdk-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdal%2Faws-cdk-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdal%2Faws-cdk-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdal%2Faws-cdk-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bogdal","download_url":"https://codeload.github.com/bogdal/aws-cdk-website/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdal%2Faws-cdk-website/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29547368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T13:00:00.370Z","status":"ssl_error","status_checked_at":"2026-02-17T12:57:14.072Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","aws-cdk","cdk","provisioning","pwa","rendertron","spa","ssr","website"],"created_at":"2024-10-13T01:44:21.713Z","updated_at":"2026-02-17T14:31:13.127Z","avatar_url":"https://github.com/bogdal.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## aws-cdk-website\n\nIt defines the cloud infrastructure dedicated to static _Single Page Applications_, which uses an S3 bucket for storing the content, CloudFront for distributing the application and Lambda@Edge functions for handling push-state URLs and server-side rendering.\n\n### SSR\n\nThis Stack provides server-side rendering using [https://render-tron.appspot.com/](https://render-tron.appspot.com/) service by default, but it should also be compatible with other services, such as [prerender.io](https://prerender.io/). If you have your own [Rendertron](https://github.com/GoogleChrome/rendertron) instance, just set the URL inside the `cdk.json` file.\n\n## Let's start\n\n#### Set AWS credentials\n\n```bash\n$ export AWS_ACCESS_KEY_ID=\u003caccess_key\u003e\n$ export AWS_SECRET_ACCESS_KEY=\u003csecret_key\u003e\n```\n\n#### Install dependencies\n\n```bash\n$ npm i\n```\n\n#### Bootstrap your AWS environment\n\nBefore you can use the AWS CDK you must bootstrap your AWS environment to create the infrastructure that the AWS CDK CLI needs to deploy your Stack.\n\n```bash\n$ npx cdk bootstrap\n```\n\n#### Configure your infastructure\n\nModify the `cdk.json` file and adjust the _context_ values to your needs:\n\n```\n  ...\n  \"context\": {\n    \"bucket_name\": \"\u003cyour-bucket-name\u003e\",\n    \"enable_ssr\": true,\n    \"ssr_service_url\": \"https://render-tron.appspot.com/render/\"\n  }\n```\n\n#### Deploy the app stack\n\n```bash\n$ npm run deploy\n```\n\n#### Deploy the app content\n\nThe command output from the previous step will contain the distribution id value which you should use to deploy your application using [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html).\n\n```bash\naws s3 sync dist s3://${BUCKET_NAME} --delete\naws cloudfront create-invalidation --distribution-id ${DISTRIBUTION_ID} --paths \"/*\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbogdal%2Faws-cdk-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbogdal%2Faws-cdk-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbogdal%2Faws-cdk-website/lists"}