{"id":27146240,"url":"https://github.com/ryands17/spa-deploy-cdk","last_synced_at":"2026-03-11T21:32:41.515Z","repository":{"id":38280436,"uuid":"252826955","full_name":"ryands17/spa-deploy-cdk","owner":"ryands17","description":"Deploy a SPA with AWS Codebuild using aws-cdk","archived":false,"fork":false,"pushed_at":"2026-03-10T06:36:05.000Z","size":1403,"stargazers_count":12,"open_issues_count":11,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-10T14:32:46.151Z","etag":null,"topics":["aws","aws-cdk","cloudfront","codebuild","s3"],"latest_commit_sha":null,"homepage":null,"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/ryands17.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-03T19:52:55.000Z","updated_at":"2024-11-07T06:51:34.000Z","dependencies_parsed_at":"2023-12-30T01:43:23.721Z","dependency_job_id":"b4055b96-46a2-4f5f-b29d-da8f3eacc5f8","html_url":"https://github.com/ryands17/spa-deploy-cdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryands17/spa-deploy-cdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fspa-deploy-cdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fspa-deploy-cdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fspa-deploy-cdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fspa-deploy-cdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryands17","download_url":"https://codeload.github.com/ryands17/spa-deploy-cdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fspa-deploy-cdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30401949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T21:02:20.017Z","status":"ssl_error","status_checked_at":"2026-03-11T20:59:32.667Z","response_time":84,"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","cloudfront","codebuild","s3"],"created_at":"2025-04-08T10:09:59.158Z","updated_at":"2026-03-11T21:32:41.499Z","avatar_url":"https://github.com/ryands17.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPA Deploy Codebuild\n\n![Build Status](https://github.com/ryands17/spa-deploy-cdk/workflows/CI/badge.svg)\n\nThis is an [aws-cdk](https://aws.amazon.com/cdk/) project where you can deploy any SPA (React, Angular, Vue, etc.) via Codebuild on S3 and served via Cloudfront.\n\nLink to the tutorial that I've written: https://dev.to/ryands17/deploying-a-spa-using-aws-cdk-typescript-4ibf\n\n**_Note_**: This configuration is for GitHub only. For Bitbucket, you can edit the source accordingly.\n\n**Prerequisites**\n\n- Setup your access and secret keys via the [aws-cli](https://aws.amazon.com/cli/) and with the profile name of your choice (the default profile is named `default`). The credentials generated should have access to creation of all resources mentioned else it won't work.\n\n**Steps**\n\n1. Rename the `.example.env` file to `.env` and replace all the values with predefined values for your stack.\n\n**_Note_**: All the variables are mandatory! Without that, the stack wouldn't work.\n\n2. Run `yarn` (recommended) or `npm install`\n\n3. Run `yarn deploy --profile profileName` or `npm run deploy -- --profile profileName` to deploy the stack to your specified region. You can skip providing the profile name if it is `default`.\n\n4. You can start the build from the console in `Codebuild` and view your website on the Cloudfront provided URL!\n\nThe `cdk.json` file tells the CDK Toolkit how to execute your app.\n\n## Commands\n\n- `yarn build` compile typescript to js\n- `yarn deploy` deploy this stack to your AWS account/region specified in the `.env`\n- `yarn watch` watch for changes and compile\n- `yarn test` perform the jest unit tests\n- `cdk diff` compare deployed stack with current state\n- `cdk synth` emits the synthesized CloudFormation template\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryands17%2Fspa-deploy-cdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryands17%2Fspa-deploy-cdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryands17%2Fspa-deploy-cdk/lists"}