Skip to content

Commit

Permalink
source and dest creds
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Apr 20, 2025
1 parent c92b194 commit 20e4bcb
Showing 1 changed file with 33 additions and 30 deletions.
63 changes: 33 additions & 30 deletions copy_images.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,43 @@ locals {

image_config = [
{
enabled = true
dest_path = null
name = "keycloak/keycloak"
source_image = "keycloak/keycloak"
source_registry = format("%v/%v", local.ent_ecr_source, "quay")
source_tag = var.keycloak_tag
tag = var.keycloak_tag
source_username = data.aws_ecr_authorization_token.ecr_token.user_name
source_password = data.aws_ecr_authorization_token.ecr_token.password
enabled = true
dest_path = null
name = "keycloak/keycloak"
source_image = "keycloak/keycloak"
source_registry = format("%v/%v", local.ent_ecr_source, "quay")
source_tag = var.keycloak_tag
tag = var.keycloak_tag
source_username = data.aws_ecr_authorization_token.ecr_token.user_name
source_password = data.aws_ecr_authorization_token.ecr_token.password
destination_username = data.aws_ecr_authorization_token.token.user_name
destination_password = data.aws_ecr_authorization_token.token.password
},
{
enabled = true
dest_path = null
name = "bitnami/postgresql"
source_image = "bitnami/postgresql"
source_registry = "public.ecr.aws"
source_tag = var.postgresql_tag
tag = var.postgresql_tag
source_username = data.aws_ecr_authorization_token.token.user_name
source_password = data.aws_ecr_authorization_token.token.password
enabled = true
dest_path = null
name = "bitnami/postgresql"
source_image = "bitnami/postgresql"
source_registry = "public.ecr.aws"
source_tag = var.postgresql_tag
tag = var.postgresql_tag
source_username = data.aws_ecr_authorization_token.token.user_name
source_password = data.aws_ecr_authorization_token.token.password
destination_username = data.aws_ecr_authorization_token.token.user_name
destination_password = data.aws_ecr_authorization_token.token.password
},
{
enabled = true
dest_path = null
name = "bitnami/kubectl-debian"
source_image = "big-bang/utilities"
source_registry = format("%v/%v", local.ent_ecr_source, "ironbank")
source_tag = var.utilities_tag
tag = var.utilities_tag
source_username = data.aws_ecr_authorization_token.ecr_token.user_name
source_password = data.aws_ecr_authorization_token.ecr_token.password
enabled = true
dest_path = null
name = "bitnami/kubectl-debian"
source_image = "big-bang/utilities"
source_registry = format("%v/%v", local.ent_ecr_source, "ironbank")
source_tag = var.utilities_tag
tag = var.utilities_tag
source_username = data.aws_ecr_authorization_token.ecr_token.user_name
source_password = data.aws_ecr_authorization_token.ecr_token.password
destination_username = data.aws_ecr_authorization_token.token.user_name
destination_password = data.aws_ecr_authorization_token.token.password
},
]
}
Expand All @@ -54,9 +60,6 @@ module "images" {
lifecycle_policy_all = true
force_delete = true
lifecycle_policy_keep_count = 5

destination_username = data.aws_ecr_authorization_token.token.user_name
destination_password = data.aws_ecr_authorization_token.token.password
}

data "aws_ecr_authorization_token" "token" {
Expand Down

0 comments on commit 20e4bcb

Please sign in to comment.