{"id":14968644,"url":"https://github.com/wwwpro/baws-cdk-monolith","last_synced_at":"2026-02-17T08:07:24.451Z","repository":{"id":35126644,"uuid":"208398547","full_name":"wwwpro/baws-cdk-monolith","owner":"wwwpro","description":"AWS CDK stacks for modernizing and containerizing \"traditional\" monolith projects, such as Drupal, WordPress, Laravel, Django, Flask or site generators.","archived":false,"fork":false,"pushed_at":"2022-12-10T02:27:34.000Z","size":499,"stargazers_count":9,"open_issues_count":7,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T15:11:26.721Z","etag":null,"topics":["aws","cdk","codebuild","codecommit","codepipeline","docker","drupal","drupal-7","drupal8","ecs","wordpress"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wwwpro.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}},"created_at":"2019-09-14T06:21:48.000Z","updated_at":"2023-10-02T17:36:13.000Z","dependencies_parsed_at":"2023-01-15T14:21:46.144Z","dependency_job_id":null,"html_url":"https://github.com/wwwpro/baws-cdk-monolith","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/wwwpro%2Fbaws-cdk-monolith","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwwpro%2Fbaws-cdk-monolith/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwwpro%2Fbaws-cdk-monolith/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwwpro%2Fbaws-cdk-monolith/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wwwpro","download_url":"https://codeload.github.com/wwwpro/baws-cdk-monolith/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238264672,"owners_count":19443388,"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","cdk","codebuild","codecommit","codepipeline","docker","drupal","drupal-7","drupal8","ecs","wordpress"],"created_at":"2024-09-24T13:40:20.794Z","updated_at":"2025-10-26T05:30:31.689Z","avatar_url":"https://github.com/wwwpro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baws \"Monolith\" CDK - Beta\nUse CDK command line to build and manage complete infrastructure needed to containerize and modernize your monolith applications such as WordPress, Drupal, Flask, Django, any static site generator with Docker and CodePipelines\n\nThis is currently an alpha build. More documentation and features arriving by October, 2019.\n\n\n## Getting Started\n---\n\n### **Important Note:**\nAlthough usage of this code is free, following instructions here will result in billable services in your AWS account. \n\n**You are responsbile for your AWS bill.**\n\n## Prerequisites:\n\n* Of course, you'll need [an AWS Account](https://aws.amazon.com/)\n* Install the [AWS Cli](https://docs.aws.amazon.com/en_pv/cli/latest/userguide/cli-chap-install.html)\n* Create an IAM User, with \"Power User\" permissions\n* Setup the IAM with the AWS CLI.\n* Create at least one SSL cert managed through [Certification Manager](https://console.aws.amazon.com/acm/home).\n* Install [Node.js](https://nodejs.org/en/download/)\n\n## Setup\n---\n1. Clone repo to local environment.\n2. Run `npm i -g aws-cdk`\n3. Run `npm install`\n4. Copy `.cdk.json` into a new file called `cdk.json`.\n5. Copy `config.sample.yml` to `config.yml`\n6. Follow configuration steps below\n\n### **Configure cdk.json**\n\n_bastionIps_: (Optional) An array of IPs you'd like to be allowed to access EC2 instances.\n\n_SSLCertArn_: (Required)T he Arn of the default SSL certificate you'd like to be added \n\n_ec2Key_: Create (or upload) and SSH key to [Key Pairs](https://console.aws.amazon.com/ec2/home#KeyPairs:sort=keyName) in the AWS console. \n\n### **Configure.yml**\nConfig.yml can be used to configure and update your infrastructure. Every variable option within this package can and should be updated here. Every array can be duplicated to create additional infrastructure. For instance, additional ECS clusters, additional tasks, additional pipelines, etc. can be created by duplicating the array. \n\nAll `name` options must be unique per array.\n\nMost options are commented or self-explanatory. Additional documentation will be arriving by October, 2019.\n\n## Usage\n---\n\nAfter setup above, build the code locally:\n\n```bash\nnpm run build\n```\n\nThen run the following command:\n\n```bash\ncdk bootstrap\n```\nAfter the bootstrap command is run, you have the option of 3 different stacks:\n\n## Creating your Stacks\n\n```bash\ncdk deploy stack-full\n```\nThe above will launch all standard features, and launch an Aurora Cluster, and a Cache Cluster.\n\n```bash\ncdk deploy stack-standard\n```\nThe above will launch all standard features for a CRUD application. It is missing elasticache when compared to `stack-full`.\n\n```bash\ncdk deploy stack-min\n```\nThe above will not launch an Aurora (MySQL) cluster, or a cache cluster, compared to `stack-full` and `stack-standard`, respectively.  \n\n## Destroying your Stacks\n\nEach stack you create above is compiled from a serires of separate stacks. This is by design, in order to be able to destroy a service, for instance, without destroying its corresponding repo. \n\nTo view all stacks created by the services visit the [CloudFormation Service](https://console.aws.amazon.com/cloudformation/home?#/stacks?filteringText=\u0026filteringStatus=active\u0026viewNested=true\u0026hideStacks=false) in your console. \n\nDestroying a stack will also destroy all service dependent on that stack. For instance, nearly every service is dependent on the `vpc` stack. To destroy everything created by the above deploy commands, run:\n\n```bash\ncdk destroy vpc\n```\n**PLEASE NOTE:** After populating storage and services with content, not every stack will destroy successfully. For instance, non-empty S3 buckets cannot be destroyed through command line; the destroy command will fail. \n\nTo destroy any stacks which fail to delete, you may have to take manual action, such as deleting the desired S3 buckets through the console, first. \n\n## Road Map\n---\nThe following features have the highest priority in future implementation:\n\n* **Blue/Green Deployment option in the pipeline.**\n* **Granular scaling options for services**\n* **Better scaling options for the `scaling` stack**\n* **Github support in pipelines.**\n* **\"Files\" support** for S3, CDN and Pipeline configs, similar to ECS, so yml files can be read from a directory instead of needing to be in the main config.  \n* **Fargate Stack** for deploying common utilities, such as PhpMyAdmin.\n\n## Contact \n---\nwwwpro@baws.io","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwwpro%2Fbaws-cdk-monolith","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwwwpro%2Fbaws-cdk-monolith","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwwpro%2Fbaws-cdk-monolith/lists"}