Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jul 4, 2024
1 parent 4f16eff commit 4826eb7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 29 deletions.
20 changes: 19 additions & 1 deletion copy_images.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ locals {
}

module "images" {
source = "git@github.e.it.census.gov:terraform-modules/aws-ecr-copy-images.git/?ref=2.0.2"
source = "git@github.e.it.census.gov:terraform-modules/aws-ecr-copy-images.git/?ref=tf-upgrade"

profile = var.profile
application_name = var.cluster_name
Expand All @@ -91,4 +91,22 @@ module "images" {
## region = ""
## source_password = ""
## source_username = ""

enable_lifecycle_policy = true
lifecycle_policy_all = true

data "aws_ecr_lifecycle_policy_document" "pushed" {
rule {
priority = 1
description = "keep images tagged test, last push 28 days ago"

selection {
tag_status = "tagged"
# tag_pattern_list = ["*test*"]
count_type = "sinceImagePushed"
count_number = 28
count_unit = days
}
}
}
}
28 changes: 0 additions & 28 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,34 +49,6 @@ variable "rwo_storage_class" {
default = "gp3-encrypted"
}

# variable "table_manager_retention_deletes_enabled" {
# description = ""
# type = string
# default = "false"
# }

# variable "table_manager_retention_period" {
# description = "Loki defaults to 0"
# type = string
# default = "2160h"
# }

# variable "kubectl_image_registry" {
# description = "The registry holding the kubectl docker image"
# type = string
# }

# variable "kubectl_image_repository" {
# description = "The image repository holding the kubectl docker image"
# type = string
# }

# variable "kubectl_image_tag" {
# description = "The image tag to use to access the kubectl docker image"
# type = string
# }


# helm add repo grafana "https://grafana.github.io/helm-charts"
# helm search repo grafana/loki
variable "loki_chart_version" {
Expand Down

0 comments on commit 4826eb7

Please sign in to comment.