{"id":15151094,"url":"https://github.com/flexstack/rails-cdk","last_synced_at":"2026-01-21T12:01:31.803Z","repository":{"id":251984681,"uuid":"838995380","full_name":"flexstack/rails-cdk","owner":"flexstack","description":"An example for deploying a Rails app to AWS Fargate with AWS CDK","archived":false,"fork":false,"pushed_at":"2024-08-06T21:46:52.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T08:45:02.843Z","etag":null,"topics":["aws-apigateway","aws-cloudfront","aws-fargate","cdk","cdk-examples","rails","rails-cdk","rails-examples"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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-08-06T18:51:55.000Z","updated_at":"2024-10-21T12:34:42.000Z","dependencies_parsed_at":"2024-08-07T00:56:29.129Z","dependency_job_id":"e9ba4227-ef4c-4353-874b-175ec1e1cfce","html_url":"https://github.com/flexstack/rails-cdk","commit_stats":null,"previous_names":["flexstack/rails-cdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flexstack/rails-cdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Frails-cdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Frails-cdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Frails-cdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Frails-cdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexstack","download_url":"https://codeload.github.com/flexstack/rails-cdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Frails-cdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"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-apigateway","aws-cloudfront","aws-fargate","cdk","cdk-examples","rails","rails-cdk","rails-examples"],"created_at":"2024-09-26T15:00:41.920Z","updated_at":"2026-01-21T12:01:31.782Z","avatar_url":"https://github.com/flexstack.png","language":"Ruby","readme":"# Rails on AWS Fargate with AWS CDK\n \n![Preview](./.readme/cloudfront-rails.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 Rails 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\nNext, create an [SSM parameter](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html)\nwith the Rails master key at `/rails-cdk/prod/RAILS_MASTER_KEY`. Your master key can be found in the `config/master.key` file.\nThis key is used to decrypt the Rails credentials file in the ECS task definition.\n\n```bash\ncd infra\nnpm install\n# Bootstrap the CDK environment\ncdk bootstrap --qualifier railscdk\n# Deploy the stacks\ncdk deploy --all\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexstack%2Frails-cdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexstack%2Frails-cdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexstack%2Frails-cdk/lists"}