From 82225d419da762156f13ec87c852226982f863f2 Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Tue, 9 Aug 2022 14:39:46 +0100 Subject: [PATCH] terraform: use git submodules for cloudfront proxy --- app/terraform/proxy/cloudfront.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/terraform/proxy/cloudfront.py b/app/terraform/proxy/cloudfront.py index 063b9d5..8dbf031 100644 --- a/app/terraform/proxy/cloudfront.py +++ b/app/terraform/proxy/cloudfront.py @@ -92,8 +92,7 @@ class ProxyCloudfrontAutomation(ProxyAutomation): {% for origin in group.origins | selectattr("destroyed", "none") | selectattr("smart") %} {% if loop.first %} module "smart_proxy_{{ group.id }}" { - source = "sr2c/bc-smart-proxy-instance/aws" - version = "0.0.3" + source = "{{ terraform_modules_path }}/terraform-aws-bc-smart-proxy-instance" context = module.label_{{ group.id }}.context name = "smart-proxy" disable_api_termination = false @@ -122,8 +121,7 @@ class ProxyCloudfrontAutomation(ProxyAutomation): {% for proxy in proxies %} module "cloudfront_{{ proxy.id }}" { - source = "sr2c/bc-proxy/aws" - version = "0.0.10" + source = "{{ terraform_modules_path }}/terraform-aws-bc-proxy" {% if proxy.origin.smart %} origin_domain = "origin-{{ proxy.origin.id }}.cloudfront.smart.{{ smart_zone[:-1] }}" {% else %}