{"id":27959106,"url":"https://github.com/kitsuyaazuma/resource-label-checker","last_synced_at":"2026-05-09T14:03:43.578Z","repository":{"id":188258563,"uuid":"673388383","full_name":"kitsuyaazuma/resource-label-checker","owner":"kitsuyaazuma","description":"A tool that periodically checks whether cloud resources are given a common label and notifies the results to Slack","archived":false,"fork":false,"pushed_at":"2023-08-04T04:39:15.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T14:02:23.252Z","etag":null,"topics":["aws","gcp","golang","slack"],"latest_commit_sha":null,"homepage":"https://developers.cyberagent.co.jp/blog/archives/43627/","language":"Go","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/kitsuyaazuma.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}},"created_at":"2023-08-01T14:08:16.000Z","updated_at":"2024-06-22T13:05:55.000Z","dependencies_parsed_at":"2023-08-14T15:31:44.233Z","dependency_job_id":"fb4de43c-5d31-430b-b57d-e61526fcc8ea","html_url":"https://github.com/kitsuyaazuma/resource-label-checker","commit_stats":null,"previous_names":["kitsuya0828/resource-label-checker","kitsuyaazuma/resource-label-checker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitsuyaazuma%2Fresource-label-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitsuyaazuma%2Fresource-label-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitsuyaazuma%2Fresource-label-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitsuyaazuma%2Fresource-label-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitsuyaazuma","download_url":"https://codeload.github.com/kitsuyaazuma/resource-label-checker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252933358,"owners_count":21827497,"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","gcp","golang","slack"],"created_at":"2025-05-07T18:28:33.701Z","updated_at":"2026-05-09T14:03:43.498Z","avatar_url":"https://github.com/kitsuyaazuma.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# resource-label-checker\n\n**resource-label-checker** is a tool that periodically checks whether cloud resources are given a common label and notifies the results to Slack. \n\nThe purpose is to effortlessly manage and analyse costs by labelling resources consistently.\n\n## Setup\n```bash\ngit clone https://github.com/Kitsuya0828/resource-label-checker.git\ncd resource-label-checker\ngo mod download\n```\n\n## Run Locally\nSet the environment variables indicated in `gcp.env.template` or `aws.env.template` appropriately before running the program. \n\n### Google Cloud\nBy default, it checks for the presence of labels listed in the `required-labels:` field in `gcp/config.yml`. \n\nIn addition, because of the [Cloud Asset API](https://cloud.google.com/asset-inventory/docs/apis?hl=ja), the resource types to be excluded from the search can be selected from [Supported resource types](https://cloud.google.com/asset-inventory/docs/supported-asset-types?hl=ja#supported_resource_types) and appended to the `excluded-resources:` field.\n\nNote that you must be granted the `cloudasset.assets.searchAllResources` permission on the desired scope (`PROJECT_ID`).\n\n```bash\ncd gcp\ngo run .\n```\n\n### AWS\nBy default, it checks for the presence of tags listed in the `required-labels:` field in `aws/config.yml`. \n\nIn addition, because of the [AWS Config](https://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html), the resource types that can be included in the search are listed in [resourceType](https://docs.aws.amazon.com/config/latest/APIReference/API_ListDiscoveredResources.html#config-ListDiscoveredResources-request-resourceType) and you can edit the `included-resources:` field.\n\nNote that you must be able to run `config:ListDiscoveredResources` action and `config:BatchGetResourceConfig` action.\n\n```bash\ncd aws\ngo run .\n```\n\n## Deploy\nSample Terraform code can be found in [Kitsuya0828/resource\\-label\\-checker\\-terraform](https://github.com/Kitsuya0828/resource-label-checker-terraform).\n\nThe GitHub Actions workflow builds and pushes Docker images to the target Artifact Registry or ECR, but the sample workflow under the `.github/` directory is currently commented out.\n\nTo run in AWS Lambda, change the comment-out in `aws/main.go` as follows.\n\n```go\nfunc main() {\n\t// Run()\t// Run locally or on ECS Fargate\n\tlambda.Start(Run)\t// Run on AWS Lambda\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitsuyaazuma%2Fresource-label-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitsuyaazuma%2Fresource-label-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitsuyaazuma%2Fresource-label-checker/lists"}