{"id":19232267,"url":"https://github.com/flexstack/nextjs-cdk","last_synced_at":"2026-01-07T13:43:26.713Z","repository":{"id":251121067,"uuid":"836424195","full_name":"flexstack/nextjs-cdk","owner":"flexstack","description":"An example for deploying a Next.js app to AWS Fargate with AWS CDK","archived":false,"fork":false,"pushed_at":"2024-07-31T22:20:53.000Z","size":391,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T12:23:12.958Z","etag":null,"topics":["aws-apigateway","aws-cdk","aws-cloudfront","aws-fargate","cdk","cdk-examples","nextjs","nextjs-cdk","nextjs-examples"],"latest_commit_sha":null,"homepage":"https://flexstack.com/docs/languages-and-frameworks/how-to-deploy-next-js-to-aws","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-07-31T20:22:20.000Z","updated_at":"2024-09-29T11:10:13.000Z","dependencies_parsed_at":"2024-08-01T02:15:50.706Z","dependency_job_id":"d866bc8f-8c1b-4e5d-8f51-cda380d6a1ed","html_url":"https://github.com/flexstack/nextjs-cdk","commit_stats":null,"previous_names":["flexstack/nextjs-cdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Fnextjs-cdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Fnextjs-cdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Fnextjs-cdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Fnextjs-cdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexstack","download_url":"https://codeload.github.com/flexstack/nextjs-cdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246126735,"owners_count":20727595,"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-apigateway","aws-cdk","aws-cloudfront","aws-fargate","cdk","cdk-examples","nextjs","nextjs-cdk","nextjs-examples"],"created_at":"2024-11-09T16:05:49.399Z","updated_at":"2026-01-07T13:43:26.683Z","avatar_url":"https://github.com/flexstack.png","language":"JavaScript","readme":"# Next.js on AWS Fargate with AWS CDK\n \n![Preview](./.readme/cloudfront-nextjs.png)\n\n## Architecture\n\nSee the [CDK code](./infra/bin/infra.ts) for the full architecture.\n\n- A VPC with public, private, private isolated subnets\n- An ECS cluster with a Fargate service\n- A Route 53 private hosted zone for the ECS service (AWS CloudMap/Service Discovery)\n- API Gateway w/ VPC Link Integration to the ECS service using the private DNS name\n- An ECS task definition with a container that runs the Next.js app\n- A CloudFront distribution with an API Gateway origin\n\n## Deploy to AWS with CDK\n\nFirst, you need to install [aws-cdk](https://www.npmjs.com/package/aws-cdk).\n\n\n```bash\ncd infra\nnpm install\n# Bootstrap the CDK environment\ncdk bootstrap --qualifier nextjscdk\n# Deploy the stack\ncdk deploy --all\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexstack%2Fnextjs-cdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexstack%2Fnextjs-cdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexstack%2Fnextjs-cdk/lists"}