diff --git a/examples/lambda/registrator.tf b/examples/lambda/registrator.tf index 8eb8408..a2f28ba 100644 --- a/examples/lambda/registrator.tf +++ b/examples/lambda/registrator.tf @@ -9,5 +9,5 @@ module "consul_lambda_registrator" { subnet_ids = module.vpc.private_subnets security_group_ids = [module.vpc.default_security_group_id] sync_frequency_in_minutes = 1 - pull_through = false + pull_through = var.pull_through } diff --git a/examples/lambda/variables.tf b/examples/lambda/variables.tf index dd369da..d9e8bad 100644 --- a/examples/lambda/variables.tf +++ b/examples/lambda/variables.tf @@ -39,3 +39,9 @@ variable "consul_lambda_extension_arn" { type = string default = "" } + +variable "pull_through" { + description = "Flag to determine if a pull-through cache method will be used to obtain the appropriate ECR image" + type = bool + default = false +} \ No newline at end of file