forked from mirakl/terraform-google-gcr-cleaner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
35 lines (34 loc) · 795 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module "gcr_cleaner" {
source = "../.."
app_engine_application_location = "europe-west3"
gcr_repositories = [
{
storage_region = "eu"
repositories = [
{
# in `test/nginx` repository, delete all untagged images
name = "test/nginx"
},
{
# in `test/python` repository, delete all images older than 30 days (720h)
name = "test/python"
grace = "720h"
}
]
}
]
gar_repositories = [
{
name = "foo/nginx"
registry_name = "foo"
region = "europe-west1"
project_id = "foobar-123"
},
{
name = "foo/python"
registry_name = "foo"
region = "europe-west1"
project_id = "foobar-123"
}
]
}