{"id":34640509,"url":"https://github.com/we45/kms-example","last_synced_at":"2026-05-27T04:44:37.764Z","repository":{"id":48173857,"uuid":"183931696","full_name":"we45/kms-example","owner":"we45","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-22T08:53:47.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-02-28T14:36:25.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/we45.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}},"created_at":"2019-04-28T16:20:37.000Z","updated_at":"2022-07-22T02:21:16.000Z","dependencies_parsed_at":"2022-08-25T00:51:09.134Z","dependency_job_id":null,"html_url":"https://github.com/we45/kms-example","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/we45/kms-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we45%2Fkms-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we45%2Fkms-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we45%2Fkms-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we45%2Fkms-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/we45","download_url":"https://codeload.github.com/we45/kms-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we45%2Fkms-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28005414,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-12-24T17:16:38.809Z","updated_at":"2025-12-24T17:16:39.502Z","avatar_url":"https://github.com/we45.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### AWS KMS Example\n\n* Step 1: Create AWS account and initialize\n    * Once you provision the server Click on `Access` button. \n    * In the appeared window click on `Terminal` and select `New terminal`\n\n```bash\nasectl init aws\n```\n\n* Step 2: Change to directory\n```bash\ncd /root\n```\n\n* Step 3: Clone the AWS KMS example requirements\n\n```bash\ngit clone https://github.com/we45/kms-example.git\n```\n\n* Step 4: Change to directory\n\n```bash\ncd /root/kms-example\n```\n\n* Step 5: Create a CMK key and export it as environment variable. \n```bash\nexport cmk_id=$(aws kms create-key  --tags TagKey=ASE,TagValue=KMS --description \"Serverless secure coding\" --query KeyMetadata.KeyId --output text)\n```\n\n* Step 6: Let's install the required dependencies  \n```bash\npip3 install -r requirements.txt \n```\n\n* Step 7: Let's run the KMS example\n```bash\npython3 app.py\n```\n\n* Step 8: Open new terminal and fetch the serverip and access it on port `5000`\n```bash\nserverip:5000/encrypt\n```\n\u003e Example: http://35.212.166.168:5000/encrypt\n\n### Teardown\n\n* Step 1:  press `ctrl + c` to stop the KMS example application \n\n``` bash\nexit\n```\n* Step 2: Let's delete the KMS key with scheduled deletion set to `7 days`\n\n\n```bash\naws kms schedule-key-deletion  --key-id $cmk_id  --pending-window-in-days 7\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwe45%2Fkms-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwe45%2Fkms-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwe45%2Fkms-example/lists"}