Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
ECR Image Fix (#124)
Browse files Browse the repository at this point in the history
* Fixed issue with not being able to allowlist ECR Images

* Fixed issue with ECR Image cleanup never being run

* Changelog

* Removed images from run statement

* CRLF to LF
  • Loading branch information
mlevit authored Jul 16, 2022
1 parent 8dacdc0 commit 60d1a56
Show file tree
Hide file tree
Showing 3 changed files with 485 additions and 474 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# AWS Auto Cleanup Changelog

- UNRELEASED

- Fixed issue with not being able to allowlist ECR Images.
- Fixed issue with ECR Image cleanup never being run.

## 2.2.0

- Added wildcard support to allowlist resource ID. Comparisons are now performed using the [fnmatch](https://docs.python.org/3/library/fnmatch.html) Python module. The following special characters can be used:
Expand Down
2 changes: 1 addition & 1 deletion api/src/allowlist/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def lambda_handler(event, context):
return get_return(400, "Could not read Auto Cleanup settings", parameters, None)

try:
service, resource, resource_id = parameters.get("resource_id").split(":")
service, resource, resource_id = parameters.get("resource_id").split(":", 2)
except Exception as error:
print(f"[ERROR] {error}")
return get_return(
Expand Down
Loading

0 comments on commit 60d1a56

Please sign in to comment.