{"id":25911457,"url":"https://github.com/copyleftdev/cdk-deploy-example","last_synced_at":"2025-03-03T09:17:35.001Z","repository":{"id":194896301,"uuid":"691817014","full_name":"copyleftdev/cdk-deploy-example","owner":"copyleftdev","description":"for ralph","archived":false,"fork":false,"pushed_at":"2023-09-15T00:47:32.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-09-15T17:02:10.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/copyleftdev.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":"security-groups/create-sg.sh","support":null,"governance":null}},"created_at":"2023-09-15T00:40:58.000Z","updated_at":"2023-09-15T17:02:11.495Z","dependencies_parsed_at":"2023-09-15T17:12:12.721Z","dependency_job_id":null,"html_url":"https://github.com/copyleftdev/cdk-deploy-example","commit_stats":null,"previous_names":["copyleftdev/cdk-deploy-example"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copyleftdev%2Fcdk-deploy-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copyleftdev%2Fcdk-deploy-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copyleftdev%2Fcdk-deploy-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copyleftdev%2Fcdk-deploy-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/copyleftdev","download_url":"https://codeload.github.com/copyleftdev/cdk-deploy-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241637272,"owners_count":19994946,"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":[],"created_at":"2025-03-03T09:17:34.418Z","updated_at":"2025-03-03T09:17:34.992Z","avatar_url":"https://github.com/copyleftdev.png","language":"Shell","readme":"# My AWS CDK Project\n\nThis project utilizes the AWS Cloud Development Kit (CDK) to deploy a Docker-based MySQL instance on an EC2 instance, which is publicly accessible.\n\n## Prerequisites\n\n- **AWS CLI**: Ensure you have the AWS CLI installed and configured with the necessary access rights.\n  \n  Installation:\n  ```bash\n  pip install awscli\n  aws configure\n  ```\n\n- **Node.js and npm**: The AWS CDK is developed in TypeScript, which runs on Node.js. Ensure you have both installed.\n\n  Installation (for most platforms):\n  ```bash\n  curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -\n  sudo apt-get install -y nodejs\n  ```\n\n## Setup\n\n### 1. Install AWS CDK Globally:\n\n```bash\nnpm install -g aws-cdk\n```\n\n### 2. Clone and Navigate to the Project:\n\n```bash\ngit clone [your-git-repo-url]\ncd [your-project-directory]\n```\n\n### 3. Install Project Dependencies:\n\nInside the project directory:\n\n```bash\nnpm install\n```\n\n## Deployment\n\n### 1. Bootstrap (Only Required the First Time):\n\nIf you've never used AWS CDK with your AWS account and region, you'll need to run the bootstrap command:\n\n```bash\ncdk bootstrap\n```\n\n### 2. Deploy the Stack:\n\nTo deploy your AWS resources:\n\n```bash\ncdk deploy\n```\n\n## Teardown\n\nTo remove the resources created by the CDK:\n\n```bash\ncdk destroy\n```\n\n## Important Notes\n\n- Be cautious about AWS costs. Make sure to destroy resources when not in use to avoid incurring unnecessary charges.\n- Exposing a database instance to the public is risky. Always ensure that you've considered security best practices, such as IP whitelisting, strong passwords, and using secure connections.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcopyleftdev%2Fcdk-deploy-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcopyleftdev%2Fcdk-deploy-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcopyleftdev%2Fcdk-deploy-example/lists"}