-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Terraform error:
│ Error: Error creating tenant 22559eec-0310-49bc-9f8a-cd3707119ca8 aws cloudfront distribution.: url: https://duplo.cloud.smith.ai/v3/subscriptions/22559eec-0310-49bc-9f8a-cd3707119ca8/aws/cloudFrontDistribution, status: 400, message: {"Message":"The parameter MinTTL cannot be used when a cache policy is associated to the cache behavior."}
│
│ with duplocloud_aws_cloudfront_distribution.static,
│ on s3-cfd-static.tf line 24, in resource "duplocloud_aws_cloudfront_distribution" "static":
│ 24: resource "duplocloud_aws_cloudfront_distribution" "static" {
cluodfront Configuration
default_cache_behavior {
target_origin_id = "${duplocloud_s3_bucket.ringtone.fullname}.s3.${local.region}.amazonaws.com"
allowed_methods = ["GET", "HEAD", "OPTIONS"]
cached_methods = ["GET", "HEAD"]
compress = true
cache_policy_id = "658327ea-f89d-4fab-a63d-7e88639e58f6" #Cloudfront->Policies->Origin request->658327ea-f89d-4fab-a63d-7e88639e58f6 = Managed-CachingOptimized
origin_request_policy_id = "88a5eaf4-2fd4-4709-b370-b4c650ea3fcf" #Cloudfront->Policies->Origin request->88a5eaf4-2fd4-4709-b370-b4c650ea3fcf = Managed-CORS-S3Origin
response_headers_policy_id = "60669652-455b-4ae9-85a4-c4c02393f86c" #Cloudfront->Policies->Response Headers->60669652-455b-4ae9-85a4-c4c02393f86c = Managed-SimpleCORS
viewer_protocol_policy = "redirect-to-https"
}
Metadata
Metadata
Assignees
Labels
No labels