File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1014,6 +1014,36 @@ resource "aws_cloudfront_distribution" "api" {
10141014 target_origin_id = " Custom-api.${ local . domain_name } "
10151015 viewer_protocol_policy = " redirect-to-https"
10161016 }
1017+
1018+ ordered_cache_behavior {
1019+ allowed_methods = [
1020+ " DELETE" ,
1021+ " GET" ,
1022+ " HEAD" ,
1023+ " OPTIONS" ,
1024+ " PATCH" ,
1025+ " POST" ,
1026+ " PUT" ,
1027+ ]
1028+ cache_policy_id = " 4135ea2d-6df8-44a3-9df3-4b5a84be39ad"
1029+ cached_methods = [
1030+ " GET" ,
1031+ " HEAD" ,
1032+ ]
1033+ compress = true
1034+ default_ttl = 0
1035+ max_ttl = 0
1036+ min_ttl = 0
1037+ origin_request_policy_id = " b689b0a8-53d0-40ab-baf2-68738e2966ac"
1038+ path_pattern = " banner"
1039+ smooth_streaming = false
1040+ target_origin_id = " Custom-api.${ local . domain_name } "
1041+ trusted_key_groups = []
1042+ trusted_signers = []
1043+ viewer_protocol_policy = " redirect-to-https"
1044+ }
1045+
1046+
10171047 comment = " "
10181048 price_class = " PriceClass_100"
10191049 enabled = true
You can’t perform that action at this time.
0 commit comments