{"id":22477311,"url":"https://github.com/base2services/alfajor","last_synced_at":"2025-08-02T13:30:51.795Z","repository":{"id":36205815,"uuid":"40510064","full_name":"base2Services/alfajor","owner":"base2Services","description":"boto helper cake","archived":false,"fork":false,"pushed_at":"2017-07-11T01:15:06.000Z","size":73,"stargazers_count":2,"open_issues_count":0,"forks_count":7,"subscribers_count":14,"default_branch":"master","last_synced_at":"2023-03-22T19:32:53.976Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/base2Services.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":"2015-08-10T22:55:36.000Z","updated_at":"2017-07-12T00:58:54.000Z","dependencies_parsed_at":"2022-08-31T04:00:59.059Z","dependency_job_id":null,"html_url":"https://github.com/base2Services/alfajor","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base2Services%2Falfajor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base2Services%2Falfajor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base2Services%2Falfajor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base2Services%2Falfajor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/base2Services","download_url":"https://codeload.github.com/base2Services/alfajor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228476045,"owners_count":17926134,"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":"2024-12-06T14:10:14.886Z","updated_at":"2024-12-06T14:10:14.971Z","avatar_url":"https://github.com/base2Services.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alfajor\nboto helper cake\n\n##Python Dependencies\nboto\npyyaml\n\n##Usage\ngit clone ...\n\ncp alfajor/sample_aws_config.yml aws_config.yml\n\nvim aws_config.yml\n\npython alfajor/scripts/list_instances.py [account]\npython alfajor/scipts/list_orphan_snapshots.py [account]\n\n# Scripts\n\n## Backup (scripts/backup.py)\n\nBackups script will\n\n### 1 - Cleanup previous AMIs\n\n- Collect all instances tagged with given tag (defaults to `MakeSnapshot`)\n- For each instance collect all AMI's created from that instance\n- Calculate retention period based on instance tags\n- For each of collected AMI's, compare retention period with creation date,\n    and deregister AMI and delete backing EBS snapshots if required\n- Repeat the process for EBS snapshots\n\n### 2 - Create new AMIs and EBS snapshots\n\n#### AMI\n\n- Collect all instances tagged with given tag (defaults to `MakeSnapshot`)\n- Create new AMI with appropriate name\n- Tag AMI with all tags from `snapshot/snapshot_tags` map and `created_by_alfajor=true`\n- Tag EBS snapshot that are backing ami with `created_by_alfajor=true` and `image_id=$amiid` tags\n\n#### EBS\n\n- Collect all volumes tagged with given tag (defaults to `MakeSnapshot`)\n- Create new EBS snapshot with appropriate name","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase2services%2Falfajor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbase2services%2Falfajor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase2services%2Falfajor/lists"}