{"id":18864440,"url":"https://github.com/spirosoik/stack-janitor","last_synced_at":"2026-05-04T14:43:35.659Z","repository":{"id":87378181,"uuid":"339041445","full_name":"spirosoik/stack-janitor","owner":"spirosoik","description":"A lambda function which detects and remove cloudformation stacks periodically on a provided tag","archived":false,"fork":false,"pushed_at":"2021-02-19T15:02:13.000Z","size":56,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-02-26T23:41:33.886Z","etag":null,"topics":["aws","cloudformation-stacks","devops-tools","golang","lambda"],"latest_commit_sha":null,"homepage":"","language":"Go","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/spirosoik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-15T10:30:50.000Z","updated_at":"2024-06-19T07:49:08.460Z","dependencies_parsed_at":null,"dependency_job_id":"8b299b48-e7db-4b1a-997c-53f66aa478ca","html_url":"https://github.com/spirosoik/stack-janitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fstack-janitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fstack-janitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fstack-janitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fstack-janitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spirosoik","download_url":"https://codeload.github.com/spirosoik/stack-janitor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239808525,"owners_count":19700451,"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","cloudformation-stacks","devops-tools","golang","lambda"],"created_at":"2024-11-08T04:41:18.986Z","updated_at":"2026-02-11T08:30:17.776Z","avatar_url":"https://github.com/spirosoik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stack-janitor\n\nA lambda function which detects and remove cloudformation stacks periodically based\non the provided TAG and a specific expiration time in hours.\n\n## Purpose\n\nRespecting the environments to be clean and low cost we could run scheduled lambda function\nwhich wipes out cloudformation stacks with specific tags.\n\n## How to\n\nWe are going to schedule a CloudWatch event to invoke the lambda function periodically. Lambda function\nwill do the listing based on the provided tags and will wipe them out if they expired based on \nthe max expiration hours we have set.\n\n### Architecture\n\n![Architecture](assets/architecture_stack_janitor.png)\n\n## Deploy\n\n```\nmake\n```\n\nThe above will run the followings:\n- Build Binary for lambda\n- Prepare the artifact for Lambda\n- Upload Lambda to provided S3 bucket\n- Apply terraform (note: you need to provide env vars for terraform or use your own `.tfvars`)\n\nFor terraform details you can read the [documentation](terraform/aws/README.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspirosoik%2Fstack-janitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspirosoik%2Fstack-janitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspirosoik%2Fstack-janitor/lists"}