{"id":27146221,"url":"https://github.com/ryands17/node-beanstalk-cdk","last_synced_at":"2025-07-09T01:09:49.205Z","repository":{"id":37574049,"uuid":"256792278","full_name":"ryands17/node-beanstalk-cdk","owner":"ryands17","description":"Deploy a Node app on Elastic Beanstalk with AWS Codebuild using aws-cdk","archived":false,"fork":false,"pushed_at":"2024-05-28T10:31:27.000Z","size":1325,"stargazers_count":11,"open_issues_count":14,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-29T02:11:39.872Z","etag":null,"topics":["aws","aws-cdk","codebuild","elasticbeanstalk"],"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}},"created_at":"2020-04-18T15:49:50.000Z","updated_at":"2024-05-31T22:39:30.652Z","dependencies_parsed_at":"2023-02-14T20:01:29.929Z","dependency_job_id":"576c3a08-9f5a-4ca7-8d15-081b388ecb60","html_url":"https://github.com/ryands17/node-beanstalk-cdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fnode-beanstalk-cdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fnode-beanstalk-cdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fnode-beanstalk-cdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Fnode-beanstalk-cdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryands17","download_url":"https://codeload.github.com/ryands17/node-beanstalk-cdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247819947,"owners_count":21001394,"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","aws-cdk","codebuild","elasticbeanstalk"],"created_at":"2025-04-08T10:09:47.558Z","updated_at":"2025-04-08T10:09:48.149Z","avatar_url":"https://github.com/ryands17.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Beanstalk Deploy Codebuild\n\n![Build Status](https://github.com/ryands17/node-beanstalk-cdk/workflows/CI/badge.svg)\n\nThis is an [aws-cdk](https://aws.amazon.com/cdk/) project where you can deploy your Node application on Elastic Beanstalk via Codebuild.\n\nI have created a blog post on understanding how this works [here](https://dev.to/ryands17/deploying-a-node-app-to-beanstalk-using-aws-cdk-typescript-3b8d).\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 your predefined values for your stack.\n\n**_Note_**: All the variables are mandatory! Without that, the stack wouldn't work.\n\n2. Run `npm install`\n\n3. Run `npm run deploy -- --profile profileName` to deploy the stack to your specified region. You can omit the profile parameter if the profile name is `default`.\n\n4. You can start the build from the console in `Codebuild` and your Node application works the Beanstalk provided URL!\n\nThe `cdk.json` file tells the CDK Toolkit how to execute your app.\n\n- In the `cdk.json` the platform parameter is passed to use the environment for Node 10. You can replace that with any environent of your choice.\n\nYou can get the list of platforms using `aws elasticbeanstalk list-platform-versions`.\n\n## Commands\n\n- `npm run build` compile typescript to js\n- `npm run deploy` deploy this stack to your AWS account/region specified in the `.env`\n- `npm run watch` watch for changes and compile\n- `npm run 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%2Fnode-beanstalk-cdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryands17%2Fnode-beanstalk-cdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryands17%2Fnode-beanstalk-cdk/lists"}