terraform: use git submodules for cloudfront proxy
This commit is contained in:
parent
8b4ce478c0
commit
82225d419d
1 changed files with 2 additions and 4 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue