SHARE
TWEET

Untitled

a guest Nov 14th, 2019 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. resource "aws_cloudfront_distribution" "tyxwebdistribution" {
  2.     active_trusted_signers         = {
  3.         "enabled" = "false"
  4.         "items.#" = "0"
  5.     }
  6.     aliases                        = [
  7.         "*.tyxcloud.net",
  8.         "tyxcloud.net",
  9.     ]
  10.     arn                            = "arn:aws:cloudfront::277130472756:distribution/E1DJ3MCI41VVNX"
  11.     caller_reference               = "1559812099002"
  12.     default_root_object            = "index.html"
  13.     domain_name                    = "d21mg4l9sewtnf.cloudfront.net"
  14.     enabled                        = true
  15.     etag                           = "E2WWTMS5TJKAHM"
  16.     hosted_zone_id                 = "Z2FDTNDATAQYW2"
  17.     http_version                   = "http2"
  18.     id                             = "E1DJ3MCI41VVNX"
  19.     in_progress_validation_batches = 0
  20.     is_ipv6_enabled                = true
  21.     last_modified_time             = "2019-06-11 08:00:16.288 +0000 UTC"
  22.     price_class                    = "PriceClass_100"
  23.     retain_on_delete               = false
  24.     status                         = "Deployed"
  25.     tags                           = {}
  26.     wait_for_deployment            = true
  27.  
  28.     custom_error_response {
  29.         error_caching_min_ttl = 300
  30.         error_code            = 404
  31.         response_code         = 200
  32.         response_page_path    = "/index.html"
  33.     }
  34.  
  35.     default_cache_behavior {
  36.         allowed_methods        = [
  37.             "DELETE",
  38.             "GET",
  39.             "HEAD",
  40.             "OPTIONS",
  41.             "PATCH",
  42.             "POST",
  43.             "PUT",
  44.         ]
  45.         cached_methods         = [
  46.             "GET",
  47.             "HEAD",
  48.         ]
  49.         compress               = true
  50.         default_ttl            = 86400
  51.         max_ttl                = 31536000
  52.         min_ttl                = 0
  53.         smooth_streaming       = false
  54.         target_origin_id       = "S3-tyxcloud.net-test"
  55.         trusted_signers        = []
  56.         viewer_protocol_policy = "redirect-to-https"
  57.  
  58.         forwarded_values {
  59.             headers                 = []
  60.             query_string            = false
  61.             query_string_cache_keys = []
  62.  
  63.             cookies {
  64.                 forward           = "none"
  65.                 whitelisted_names = []
  66.             }
  67.         }
  68.     }
  69.  
  70.     origin {
  71.         domain_name = "tyxcloud.net-stage.s3.amazonaws.com"
  72.         origin_id   = "S3-tyxcloud.net-test"
  73.     }
  74.  
  75.     restrictions {
  76.         geo_restriction {
  77.             locations        = []
  78.             restriction_type = "none"
  79.         }
  80.     }
  81.  
  82.     viewer_certificate {
  83.         acm_certificate_arn            = "arn:aws:acm:us-east-1:277130472756:certificate/a768fcfe-bca2-40b2-a766-958dcf7ec00c"
  84.         cloudfront_default_certificate = false
  85.         minimum_protocol_version       = "TLSv1.1_2016"
  86.         ssl_support_method             = "sni-only"
  87.    
  88.     }
  89.  
  90. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top