File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ module "static-site" {
140140| <a name =" input_kms_key_policy " ></a > [ kms\_ key\_ policy] ( #input\_ kms\_ key\_ policy ) | Additional KSM key policy | ` string ` | ` "{}" ` | no |
141141| <a name =" input_logs_bucket " ></a > [ logs\_ bucket] ( #input\_ logs\_ bucket ) | n/a | ` string ` | ` null ` | no |
142142| <a name =" input_logs_bucket_domain_name " ></a > [ logs\_ bucket\_ domain\_ name] ( #input\_ logs\_ bucket\_ domain\_ name ) | n/a | ` string ` | ` null ` | no |
143+ | <a name =" input_origin_path " ></a > [ origin\_ path] ( #input\_ origin\_ path ) | Cloudfront origin path | ` string ` | ` "" ` | no |
143144| <a name =" input_override_status_code_403 " ></a > [ override\_ status\_ code\_ 403] ( #input\_ override\_ status\_ code\_ 403 ) | n/a | ` number ` | ` 403 ` | no |
144145| <a name =" input_override_status_code_404 " ></a > [ override\_ status\_ code\_ 404] ( #input\_ override\_ status\_ code\_ 404 ) | n/a | ` number ` | ` 200 ` | no |
145146| <a name =" input_proxy_paths " ></a > [ proxy\_ paths] ( #input\_ proxy\_ paths ) | n/a | <pre >list(object({<br > origin_domain = string<br > path_prefix = string<br > }))</pre > | ` [] ` | no |
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ resource "aws_cloudfront_distribution" "this" {
208208 domain_name = module. s3_bucket . s3_bucket_bucket_regional_domain_name
209209 origin_id = var. s3_bucket_name
210210 origin_access_control_id = aws_cloudfront_origin_access_control. this . id
211+ origin_path = var. origin_path
211212 }
212213
213214 dynamic "origin" {
Original file line number Diff line number Diff line change @@ -101,3 +101,9 @@ variable "kms_key_policy" {
101101 default = " {}"
102102 description = " Additional KSM key policy"
103103}
104+
105+ variable "origin_path" {
106+ type = string
107+ default = " "
108+ description = " Cloudfront origin path"
109+ }
You can’t perform that action at this time.
0 commit comments