-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CloudFront Cache Policy #17336
CloudFront Cache Policy #17336
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple edits are needed in the documentation, and I have a few code suggestions, otherwise looks good.
Acceptance test results in Commercial partition
--- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyOriginID (8.59s)
--- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyDomainName (9.38s)
--- PASS: TestAccAWSCloudFrontCachePolicy_noneBehavior (34.08s)
--- PASS: TestAccAWSCloudFrontCachePolicy_basic (34.26s)
--- PASS: TestAccAWSCloudFrontDataSourceCachePolicy_basic (35.82s)
--- PASS: TestAccAWSCloudFrontCachePolicy_update (45.14s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Headers (187.67s)
--- PASS: TestAccAWSCloudFrontDistribution_disappears (188.77s)
--- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn (174.45s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Headers (178.29s)
--- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn_ConflictsWithCloudFrontDefaultCertificate (183.53s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (257.33s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners (258.81s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (230.29s)
--- PASS: TestAccAWSCloudFrontDistribution_noCustomErrorResponseConfig (347.18s)
--- PASS: TestAccAWSCloudFrontDistribution_HTTP11Config (347.38s)
--- PASS: TestAccAWSCloudFrontDistribution_orderedCacheBehaviorCachePolicy (348.16s)
--- PASS: TestAccAWSCloudFrontDistribution_customOrigin (351.38s)
--- PASS: TestAccAWSCloudFrontDistribution_multiOrigin (352.17s)
--- PASS: TestAccAWSCloudFrontDistribution_RetainOnDelete (351.87s)
--- PASS: TestAccAWSCloudFrontDistribution_orderedCacheBehavior (368.15s)
--- PASS: TestAccAWSCloudFrontDistribution_noOptionalItemsConfig (369.42s)
--- PASS: TestAccAWSCloudFrontDistribution_IsIPV6EnabledConfig (375.14s)
--- PASS: TestAccAWSCloudFrontDistribution_S3Origin (424.46s)
--- PASS: TestAccAWSCloudFrontDistribution_OriginGroups (317.60s)
--- PASS: TestAccAWSCloudFrontDistribution_WaitForDeployment (340.47s)
--- PASS: TestAccAWSCloudFrontDistribution_S3OriginWithTags (560.15s)
--- PASS: TestAccAWSCloudFrontDistribution_Enabled (572.84s)
All tests skipped in GovCloud partition
minTTL := aws.Int64(int64(m["min_ttl"].(int))) | ||
maxTTL := aws.Int64(int64(m["max_ttl"].(int))) | ||
defaultTTL := aws.Int64(int64(m["default_ttl"].(int))) | ||
if m["cache_policy_id"].(string) != "" { | ||
minTTL = nil | ||
maxTTL = nil | ||
defaultTTL = nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic might be cleaner if it were moved after the &cloudfront.CacheBehavior{}
is created and not set the values in the declaration. Something like
cb := &cloudfront.CacheBehavior{
...
}
if m["cache_policy_id"].(string) == "" {
cb. DefaultTTL = aws.Int64(int64(m["default_ttl"].(int)))
cb. MaxTTL = aws.Int64(int64(m["max_ttl"].(int)))
cb. MinTTL = aws.Int64(int64(m["min_ttl"].(int)))
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. That is much better.
if headersFlat, ok := headersConfigFlat["headers"].([]interface{}); ok && len(headersFlat) == 1 && headersConfigFlat["header_behavior"] != "none" { | ||
headers = expandCloudFrontCachePolicyHeaders(headersFlat[0].(map[string]interface{})) | ||
} else { | ||
headers = nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and similar cases in the rest of the file could be moved after declaration as above
} | ||
} | ||
|
||
func flattenCloudFrontCachePolicy(d *schema.ResourceData, cachePolicy *cloudfront.CachePolicyConfig) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how you made this a shared function. I'd suggest changing the name, since flatten...()
functions typically return a native Go type such as []map[string]interface{}
or map[string]interface{}
. In this case, the function is Set
ting values on the schema.ResourceData
. Maybe something like setCloudFrontCachePolicy()
or setFlattenedCloudFrontCachePolicy()
.
func dataSourceAwsCloudFrontCachePolicyRead(d *schema.ResourceData, meta interface{}) error { | ||
conn := meta.(*AWSClient).cloudfrontconn | ||
|
||
if d.Id() == "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the conditionals needed here?
|
||
if d.Id() == "" { | ||
if err := dataSourceAwsCloudFrontCachePolicyFindByName(d, conn); err != nil { | ||
return err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return values should have some context added to them
resource.TestCheckResourceAttr("data.aws_cloudfront_cache_policy.example", "comment", "test comment"), | ||
resource.TestCheckResourceAttr("data.aws_cloudfront_cache_policy.example", "default_ttl", "50"), | ||
resource.TestCheckResourceAttr("data.aws_cloudfront_cache_policy.example", "min_ttl", "1"), | ||
resource.TestCheckResourceAttr("data.aws_cloudfront_cache_policy.example", "max_ttl", "100"), | ||
resource.TestCheckResourceAttr("data.aws_cloudfront_cache_policy.example", "parameters_in_cache_key_and_forwarded_to_origin.0.cookies_config.0.cookie_behavior", "whitelist"), | ||
resource.TestCheckResourceAttr("data.aws_cloudfront_cache_policy.example", "parameters_in_cache_key_and_forwarded_to_origin.0.cookies_config.0.cookies.0.items.0", "test"), | ||
resource.TestCheckResourceAttr("data.aws_cloudfront_cache_policy.example", "parameters_in_cache_key_and_forwarded_to_origin.0.headers_config.0.header_behavior", "whitelist"), | ||
resource.TestCheckResourceAttr("data.aws_cloudfront_cache_policy.example", "parameters_in_cache_key_and_forwarded_to_origin.0.headers_config.0.headers.0.items.0", "test"), | ||
resource.TestCheckResourceAttr("data.aws_cloudfront_cache_policy.example", "parameters_in_cache_key_and_forwarded_to_origin.0.query_strings_config.0.query_string_behavior", "whitelist"), | ||
resource.TestCheckResourceAttr("data.aws_cloudfront_cache_policy.example", "parameters_in_cache_key_and_forwarded_to_origin.0.query_strings_config.0.query_strings.0.items.0", "test"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We prefer using a variable, such as datasourceName
or resourceName
as the first parameter for these types of functions
* `cookies_config` - An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See [Headers Config](#headers-config) for more information. | ||
* `cookies_config` - An object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See [Query Strings Config](#query-strings-config) for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like some missed edits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too much copying and pasting!
* `cookies_config` - (Required) An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See [Headers Config](#headers-config) for more information. | ||
* `cookies_config` - (Required) An object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See [Query Strings Config](#query-strings-config) for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like missed edits
When will this be merged ? |
How long till it's released? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion, and the PR has a merge conflict, otherwise looks good. I'll run the acceptance tests once the conflict is resolved.
var items []*string | ||
for _, item := range tfMap["items"].(*schema.Set).List() { | ||
items = append(items, aws.String(item.(string))) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not strictly needed, but we have the function expandStringSet()
that does this
var items []*string | |
for _, item := range tfMap["items"].(*schema.Set).List() { | |
items = append(items, aws.String(item.(string))) | |
} | |
items := expandStringSet(tfMap["items"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I got it rebased, and switched to using expandStringSet
. Good to know about that one!
7ab26bc
to
2a146bd
Compare
7680ad9
to
cc46094
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 🚀
Acceptance tests in Commercial partition
--- PASS: TestCloudFrontStructure_expandCachedMethods (0.00s)
--- PASS: TestCloudFrontStructure_expandTrustedSigners (0.00s)
--- PASS: TestCloudFrontStructure_expandHeaders (0.00s)
--- PASS: TestCloudFrontStructure_flattenCookieNames (0.00s)
--- PASS: TestCloudFrontStructure_expandLambdaFunctionAssociations (0.00s)
--- PASS: TestCloudFrontStructure_expandlambdaFunctionAssociations_empty (0.00s)
--- PASS: TestCloudFrontStructure_expandCloudFrontDefaultCacheBehavior (0.01s)
--- PASS: TestCloudFrontStructure_flattenlambdaFunctionAssociations (0.00s)
--- PASS: TestCloudFrontStructure_expandForwardedValues (0.00s)
--- PASS: TestCloudFrontStructure_flattenForwardedValues (0.00s)
--- PASS: TestCloudFrontStructure_expandCookiePreference (0.00s)
--- PASS: TestCloudFrontStructure_flattenQueryStringCacheKeys (0.00s)
--- PASS: TestCloudFrontStructure_expandTrustedSigners_empty (0.00s)
--- PASS: TestCloudFrontStructure_expandAllowedMethods (0.01s)
--- PASS: TestCloudFrontStructure_expandQueryStringCacheKeys (0.04s)
--- PASS: TestCloudFrontStructure_flattenHeaders (0.00s)
--- PASS: TestCloudFrontStructure_expandOrigins (0.00s)
--- PASS: TestCloudFrontStructure_flattenAllowedMethods (0.00s)
--- PASS: TestCloudFrontStructure_flattenCachedMethods (0.00s)
--- PASS: TestCloudFrontStructure_flattenCookiePreference (0.00s)
--- PASS: TestCloudFrontStructure_flattenTrustedSigners (0.00s)
--- PASS: TestCloudFrontStructure_expandCookieNames (0.00s)
--- PASS: TestCloudFrontStructure_expandOriginGroups (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomOriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_flattenOrigins (0.00s)
--- PASS: TestCloudFrontStructure_flattenOriginCustomHeader (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomHeaders (0.00s)
--- PASS: TestCloudFrontStructure_flattenOrigin (0.00s)
--- PASS: TestCloudFrontStructure_flattenOriginGroups (0.00s)
--- PASS: TestCloudFrontStructure_expandS3OriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_expandOrigin (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomOriginConfigSSL (0.00s)
--- PASS: TestCloudFrontStructure_expandOriginCustomHeader (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomOriginConfigSSL (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomHeaders (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomOriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomErrorResponses (0.00s)
--- PASS: TestCloudFrontStructure_flattenS3OriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomErrorResponses (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomErrorResponse (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomErrorResponse_emptyResponseCode (0.00s)
--- PASS: TestCloudFrontStructure_flattenAliases (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomErrorResponse (0.00s)
--- PASS: TestCloudFrontStructure_flattenGeoRestriction_whitelist (0.00s)
--- PASS: TestCloudFrontStructure_expandLoggingConfig_nilValue (0.00s)
--- PASS: TestCloudFrontStructure_expandAliases (0.00s)
--- PASS: TestCloudFrontStructure_flattenGeoRestriction_no_items (0.00s)
--- PASS: TestCloudFrontStructure_expandLoggingConfig (0.00s)
--- PASS: TestCloudFrontStructure_expandViewerCertificate_acm_certificate_arn (0.00s)
--- PASS: TestCloudFrontStructure_expandGeoRestriction_no_items (0.00s)
--- PASS: TestCloudFrontStructure_expandRestrictions (0.00s)
--- PASS: TestCloudFrontStructure_expandViewerCertificate_iam_certificate_id (0.00s)
--- PASS: TestCloudFrontStructure_expandGeoRestriction_whitelist (0.00s)
--- PASS: TestCloudFrontStructure_expandViewerCertificate_cloudfront_default_certificate (0.00s)
--- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyDomainName (11.27s)
--- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyOriginID (11.88s)
--- PASS: TestAccAWSCloudFrontCachePolicy_basic (34.98s)
--- PASS: TestAccAWSCloudFrontCachePolicy_noneBehavior (35.63s)
--- PASS: TestAccAWSCloudFrontDataSourceCachePolicy_basic (38.05s)
--- PASS: TestAccAWSCloudFrontCachePolicy_update (47.03s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners (209.68s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Headers (180.06s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Headers (217.07s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (232.06s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (203.21s)
--- PASS: TestAccAWSCloudFrontDistribution_disappears (243.33s)
--- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn (166.71s)
--- PASS: TestAccAWSCloudFrontDistribution_customOrigin (389.65s)
--- PASS: TestAccAWSCloudFrontDistribution_S3Origin (390.40s)
--- PASS: TestAccAWSCloudFrontDistribution_noCustomErrorResponseConfig (395.87s)
--- PASS: TestAccAWSCloudFrontDistribution_noOptionalItemsConfig (397.11s)
--- PASS: TestAccAWSCloudFrontDistribution_RetainOnDelete (365.43s)
--- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn_ConflictsWithCloudFrontDefaultCertificate (179.96s)
--- PASS: TestAccAWSCloudFrontDistribution_orderedCacheBehavior (421.21s)
--- PASS: TestAccAWSCloudFrontDistribution_IsIPV6EnabledConfig (421.12s)
--- PASS: TestAccAWSCloudFrontDistribution_orderedCacheBehaviorCachePolicy (424.18s)
--- PASS: TestAccAWSCloudFrontDistribution_HTTP11Config (435.07s)
--- PASS: TestAccAWSCloudFrontDistribution_originPolicyDefault (435.36s)
--- PASS: TestAccAWSCloudFrontDistribution_originPolicyOrdered (446.05s)
--- PASS: TestAccAWSCloudFrontDistribution_multiOrigin (447.90s)
--- PASS: TestAccAWSCloudFrontDistribution_OriginGroups (307.94s)
--- PASS: TestAccAWSCloudFrontDistribution_WaitForDeployment (341.68s)
--- PASS: TestAccAWSCloudFrontDistribution_Enabled (561.74s)
--- PASS: TestAccAWSCloudFrontDistribution_S3OriginWithTags (596.62s)
Acceptance tests in GovCloud partition
--- PASS: TestCloudFrontStructure_flattenQueryStringCacheKeys (0.00s)
--- PASS: TestCloudFrontStructure_flattenCookiePreference (0.00s)
--- PASS: TestCloudFrontStructure_expandForwardedValues (0.00s)
--- PASS: TestCloudFrontStructure_flattenForwardedValues (0.00s)
--- PASS: TestCloudFrontStructure_expandlambdaFunctionAssociations_empty (0.00s)
--- PASS: TestCloudFrontStructure_expandHeaders (0.00s)
--- PASS: TestCloudFrontStructure_expandLambdaFunctionAssociations (0.00s)
--- PASS: TestCloudFrontStructure_flattenHeaders (0.00s)
--- PASS: TestCloudFrontStructure_expandTrustedSigners (0.00s)
--- PASS: TestCloudFrontStructure_flattenTrustedSigners (0.00s)
--- PASS: TestCloudFrontStructure_expandCloudFrontDefaultCacheBehavior (0.00s)
--- PASS: TestCloudFrontStructure_flattenlambdaFunctionAssociations (0.00s)
--- PASS: TestCloudFrontStructure_expandQueryStringCacheKeys (0.00s)
--- PASS: TestCloudFrontStructure_expandCookiePreference (0.00s)
--- PASS: TestCloudFrontStructure_expandCookieNames (0.00s)
--- PASS: TestCloudFrontStructure_expandTrustedSigners_empty (0.00s)
--- PASS: TestCloudFrontStructure_flattenAllowedMethods (0.00s)
--- PASS: TestCloudFrontStructure_expandOrigins (0.00s)
--- PASS: TestCloudFrontStructure_expandCachedMethods (0.00s)
--- PASS: TestCloudFrontStructure_expandAllowedMethods (0.00s)
--- PASS: TestCloudFrontStructure_flattenCachedMethods (0.00s)
--- PASS: TestCloudFrontStructure_flattenCookieNames (0.00s)
--- PASS: TestCloudFrontStructure_flattenOrigins (0.00s)
--- PASS: TestCloudFrontStructure_flattenOriginGroups (0.00s)
--- PASS: TestCloudFrontStructure_expandOriginGroups (0.00s)
--- PASS: TestCloudFrontStructure_expandOrigin (0.00s)
--- PASS: TestCloudFrontStructure_flattenOrigin (0.00s)
--- PASS: TestCloudFrontStructure_flattenOriginCustomHeader (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomHeaders (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomHeaders (0.00s)
--- PASS: TestCloudFrontStructure_expandOriginCustomHeader (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomOriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomOriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomOriginConfigSSL (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomOriginConfigSSL (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomErrorResponse (0.00s)
--- PASS: TestCloudFrontStructure_expandS3OriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_flattenS3OriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomErrorResponses (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomErrorResponses (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomErrorResponse_emptyResponseCode (0.00s)
--- PASS: TestCloudFrontStructure_expandLoggingConfig_nilValue (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomErrorResponse (0.00s)
--- PASS: TestCloudFrontStructure_expandLoggingConfig (0.00s)
--- PASS: TestCloudFrontStructure_expandAliases (0.00s)
--- PASS: TestCloudFrontStructure_flattenAliases (0.00s)
--- PASS: TestCloudFrontStructure_expandGeoRestriction_whitelist (0.00s)
--- PASS: TestCloudFrontStructure_expandRestrictions (0.00s)
--- PASS: TestCloudFrontStructure_expandViewerCertificate_acm_certificate_arn (0.00s)
--- PASS: TestCloudFrontStructure_expandViewerCertificate_iam_certificate_id (0.00s)
--- PASS: TestCloudFrontStructure_expandViewerCertificate_cloudfront_default_certificate (0.00s)
--- PASS: TestCloudFrontStructure_flattenGeoRestriction_no_items (0.00s)
--- PASS: TestCloudFrontStructure_expandGeoRestriction_no_items (0.00s)
--- PASS: TestCloudFrontStructure_flattenGeoRestriction_whitelist (0.00s)
--- SKIP: TestAccAWSCloudFrontDataSourceCachePolicy_basic (0.54s)
--- SKIP: TestAccAWSCloudFrontCachePolicy_basic (0.49s)
--- SKIP: TestAccAWSCloudFrontCachePolicy_update (0.53s)
--- SKIP: TestAccAWSCloudFrontCachePolicy_noneBehavior (0.45s)
--- SKIP: TestAccAWSCloudFrontDistribution_disappears (0.39s)
--- SKIP: TestAccAWSCloudFrontDistribution_S3OriginWithTags (0.38s)
--- SKIP: TestAccAWSCloudFrontDistribution_originPolicyDefault (0.27s)
--- SKIP: TestAccAWSCloudFrontDistribution_S3Origin (0.36s)
--- SKIP: TestAccAWSCloudFrontDistribution_customOrigin (0.41s)
--- SKIP: TestAccAWSCloudFrontDistribution_Origin_EmptyDomainName (0.42s)
--- SKIP: TestAccAWSCloudFrontDistribution_orderedCacheBehavior (0.41s)
--- SKIP: TestAccAWSCloudFrontDistribution_multiOrigin (0.44s)
--- SKIP: TestAccAWSCloudFrontDistribution_orderedCacheBehaviorCachePolicy (0.42s)
--- SKIP: TestAccAWSCloudFrontDistribution_originPolicyOrdered (0.41s)
--- SKIP: TestAccAWSCloudFrontDistribution_Origin_EmptyOriginID (0.41s)
--- SKIP: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (0.21s)
--- SKIP: TestAccAWSCloudFrontDistribution_noOptionalItemsConfig (0.50s)
--- SKIP: TestAccAWSCloudFrontDistribution_HTTP11Config (0.41s)
--- SKIP: TestAccAWSCloudFrontDistribution_noCustomErrorResponseConfig (0.36s)
--- SKIP: TestAccAWSCloudFrontDistribution_IsIPV6EnabledConfig (0.42s)
--- SKIP: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners (0.44s)
--- SKIP: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Headers (0.40s)
--- SKIP: TestAccAWSCloudFrontDistribution_RetainOnDelete (0.14s)
--- SKIP: TestAccAWSCloudFrontDistribution_Enabled (0.36s)
--- SKIP: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Headers (0.33s)
--- SKIP: TestAccAWSCloudFrontDistribution_OriginGroups (0.30s)
--- SKIP: TestAccAWSCloudFrontDistribution_WaitForDeployment (0.21s)
--- SKIP: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (0.20s)
--- SKIP: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn (0.84s)
--- SKIP: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn_ConflictsWithCloudFrontDefaultCertificate (0.73s)
This has been released in version 3.28.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Relates #14373
Output from acceptance testing: