-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_cloudfront_realtime_log_config: New resource #14974
r/aws_cloudfront_realtime_log_config: New resource #14974
Conversation
e18f468
to
272eaf7
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.
LGTM
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Headers (231.60s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners (235.72s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_RealtimeLogConfigArn (583.97s)
--- PASS: TestAccAWSCloudFrontRealtimeLogConfig_basic (96.68s)
--- PASS: TestAccAWSCloudFrontRealtimeLogConfig_disappears (87.32s)
--- PASS: TestAccAWSCloudFrontRealtimeLogConfig_updates (170.19s)
Can some one review/merge this? We need this functionality |
What else is required to merge this? We also depend on this to debug request headers, and that information is not provided by regular logs. @ewbankkit you should be able to merge afaik, as the PR is approved |
Hello @ewbankkit, we also need this feature for our ongoings developments. Is there a reason why this PR is not merged? Many thank! |
Hi folks. Is there an ETA for this PR to be merged? |
We are also waiting for this merge. |
Hello @ewbankkit, |
Acceptance testing output: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSCloudFrontRealtimeLogConfig_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSCloudFrontRealtimeLogConfig_ -timeout 120m === RUN TestAccAWSCloudFrontRealtimeLogConfig_basic === PAUSE TestAccAWSCloudFrontRealtimeLogConfig_basic === RUN TestAccAWSCloudFrontRealtimeLogConfig_disappears === PAUSE TestAccAWSCloudFrontRealtimeLogConfig_disappears === RUN TestAccAWSCloudFrontRealtimeLogConfig_updates === PAUSE TestAccAWSCloudFrontRealtimeLogConfig_updates === CONT TestAccAWSCloudFrontRealtimeLogConfig_basic === CONT TestAccAWSCloudFrontRealtimeLogConfig_updates === CONT TestAccAWSCloudFrontRealtimeLogConfig_disappears resource_aws_cloudfront_realtime_log_config_test.go:119: [INFO] Got non-empty plan, as expected --- PASS: TestAccAWSCloudFrontRealtimeLogConfig_disappears (62.40s) --- PASS: TestAccAWSCloudFrontRealtimeLogConfig_basic (65.18s) --- PASS: TestAccAWSCloudFrontRealtimeLogConfig_updates (111.77s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 111.823s
…to TypeList as it has only 1 element. Fixes awsproviderlint S018.
272eaf7
to
d56952a
Compare
Rebase to fix merge conflicts. $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSCloudFrontRealtimeLogConfig_\|TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_RealtimeLogConfigArn\|TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_RealtimeLogConfigArn\|TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners\|TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSCloudFrontRealtimeLogConfig_\|TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_RealtimeLogConfigArn\|TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_RealtimeLogConfigArn\|TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners\|TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames -timeout 120m
=== RUN TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners
=== PAUSE TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners
=== RUN TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_RealtimeLogConfigArn
=== PAUSE TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_RealtimeLogConfigArn
=== RUN TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_RealtimeLogConfigArn
=== PAUSE TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_RealtimeLogConfigArn
=== RUN TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames
=== PAUSE TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames
=== RUN TestAccAWSCloudFrontRealtimeLogConfig_basic
=== PAUSE TestAccAWSCloudFrontRealtimeLogConfig_basic
=== RUN TestAccAWSCloudFrontRealtimeLogConfig_disappears
=== PAUSE TestAccAWSCloudFrontRealtimeLogConfig_disappears
=== RUN TestAccAWSCloudFrontRealtimeLogConfig_updates
=== PAUSE TestAccAWSCloudFrontRealtimeLogConfig_updates
=== CONT TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners
=== CONT TestAccAWSCloudFrontRealtimeLogConfig_updates
=== CONT TestAccAWSCloudFrontRealtimeLogConfig_disappears
=== CONT TestAccAWSCloudFrontRealtimeLogConfig_basic
=== CONT TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames
=== CONT TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_RealtimeLogConfigArn
=== CONT TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_RealtimeLogConfigArn
--- PASS: TestAccAWSCloudFrontRealtimeLogConfig_disappears (62.91s)
--- PASS: TestAccAWSCloudFrontRealtimeLogConfig_basic (64.22s)
--- PASS: TestAccAWSCloudFrontRealtimeLogConfig_updates (107.78s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (182.38s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners (184.36s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_RealtimeLogConfigArn (212.25s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_RealtimeLogConfigArn (212.83s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 212.944s |
Co-authored-by: angie pinilla <angelinepinilla@gmail.com>
Co-authored-by: angie pinilla <angelinepinilla@gmail.com>
…://github.com/ewbankkit/terraform-provider-aws into f-aws_cloudfront_realtime_log_config-resource
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.
Just a couple nitpicks, otherwise LGTM 👍
Output of acceptance tests (commercial):
--- PASS: TestCloudFrontStructure_expandCachedMethods (0.00s)
--- PASS: TestCloudFrontStructure_expandCloudFrontDefaultCacheBehavior (0.00s)
--- PASS: TestCloudFrontStructure_expandLambdaFunctionAssociations (0.00s)
--- PASS: TestCloudFrontStructure_expandHeaders (0.00s)
--- PASS: TestCloudFrontStructure_flattenTrustedSigners (0.00s)
--- PASS: TestCloudFrontStructure_expandlambdaFunctionAssociations_empty (0.00s)
--- PASS: TestCloudFrontStructure_expandForwardedValues (0.00s)
--- PASS: TestCloudFrontStructure_expandTrustedSigners (0.00s)
--- PASS: TestCloudFrontStructure_expandQueryStringCacheKeys (0.00s)
--- PASS: TestCloudFrontStructure_expandAllowedMethods (0.00s)
--- PASS: TestCloudFrontStructure_flattenlambdaFunctionAssociations (0.00s)
--- PASS: TestCloudFrontStructure_expandTrustedSigners_empty (0.00s)
--- PASS: TestCloudFrontStructure_flattenForwardedValues (0.00s)
--- PASS: TestCloudFrontStructure_flattenAllowedMethods (0.00s)
--- PASS: TestCloudFrontStructure_flattenCookieNames (0.00s)
--- PASS: TestCloudFrontStructure_flattenCookiePreference (0.00s)
--- PASS: TestCloudFrontStructure_flattenCachedMethods (0.00s)
--- PASS: TestCloudFrontStructure_expandCookieNames (0.00s)
--- PASS: TestCloudFrontStructure_expandCookiePreference (0.00s)
--- PASS: TestCloudFrontStructure_flattenQueryStringCacheKeys (0.00s)
--- PASS: TestCloudFrontStructure_expandOriginGroups (0.00s)
--- PASS: TestCloudFrontStructure_flattenOrigins (0.00s)
--- PASS: TestCloudFrontStructure_flattenOriginGroups (0.00s)
--- PASS: TestCloudFrontStructure_expandOrigins (0.00s)
--- PASS: TestCloudFrontStructure_flattenHeaders (0.00s)
--- PASS: TestCloudFrontStructure_expandOrigin (0.03s)
--- PASS: TestCloudFrontStructure_expandCustomHeaders (0.00s)
--- PASS: TestCloudFrontStructure_expandOriginCustomHeader (0.00s)
--- PASS: TestCloudFrontStructure_flattenOrigin (0.00s)
--- PASS: TestCloudFrontStructure_flattenOriginCustomHeader (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomHeaders (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomOriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomOriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomOriginConfigSSL (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomErrorResponse_emptyResponseCode (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomErrorResponses (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomErrorResponses (0.00s)
--- PASS: TestCloudFrontStructure_expandS3OriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomOriginConfigSSL (0.00s)
--- PASS: TestCloudFrontStructure_flattenS3OriginConfig (0.00s)
--- PASS: TestCloudFrontStructure_expandCustomErrorResponse (0.00s)
--- PASS: TestCloudFrontStructure_expandLoggingConfig (0.00s)
--- PASS: TestCloudFrontStructure_flattenAliases (0.00s)
--- PASS: TestCloudFrontStructure_expandLoggingConfig_nilValue (0.00s)
--- PASS: TestCloudFrontStructure_flattenCustomErrorResponse (0.00s)
--- PASS: TestCloudFrontStructure_expandGeoRestriction_whitelist (0.00s)
--- PASS: TestCloudFrontStructure_expandAliases (0.00s)
--- PASS: TestCloudFrontStructure_flattenGeoRestriction_whitelist (0.00s)
--- PASS: TestCloudFrontStructure_expandRestrictions (0.00s)
--- PASS: TestCloudFrontStructure_expandViewerCertificate_iam_certificate_id (0.00s)
--- PASS: TestCloudFrontStructure_expandViewerCertificate_acm_certificate_arn (0.00s)
--- PASS: TestCloudFrontStructure_expandGeoRestriction_no_items (0.00s)
--- PASS: TestCloudFrontStructure_flattenGeoRestriction_no_items (0.00s)
--- PASS: TestCloudFrontStructure_expandViewerCertificate_cloudfront_default_certificate (0.00s)
--- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyOriginID (11.59s)
--- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyDomainName (11.71s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners (175.99s)
--- PASS: TestAccAWSCloudFrontDistribution_disappears (187.44s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_RealtimeLogConfigArn (222.92s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Headers (241.77s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (230.25s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Headers (236.29s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_RealtimeLogConfigArn (252.45s)
--- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn (249.87s)
--- PASS: TestAccAWSCloudFrontRealtimeLogConfig_disappears (55.94s)
--- PASS: TestAccAWSCloudFrontRealtimeLogConfig_basic (58.26s)
--- PASS: TestAccAWSCloudFrontRealtimeLogConfig_updates (100.08s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (371.88s)
--- PASS: TestAccAWSCloudFrontDistribution_HTTP11Config (384.25s)
--- PASS: TestAccAWSCloudFrontDistribution_noOptionalItemsConfig (386.58s)
--- PASS: TestAccAWSCloudFrontDistribution_customOrigin (387.70s)
--- PASS: TestAccAWSCloudFrontDistribution_S3Origin (388.00s)
--- PASS: TestAccAWSCloudFrontDistribution_IsIPV6EnabledConfig (389.61s)
--- PASS: TestAccAWSCloudFrontDistribution_noCustomErrorResponseConfig (389.96s)
--- PASS: TestAccAWSCloudFrontDistribution_RetainOnDelete (390.05s)
--- PASS: TestAccAWSCloudFrontDistribution_multiOrigin (391.51s)
--- PASS: TestAccAWSCloudFrontDistribution_orderedCacheBehavior (392.27s)
--- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn_ConflictsWithCloudFrontDefaultCertificate (230.13s)
--- PASS: TestAccAWSCloudFrontDistribution_Enabled (567.94s)
--- PASS: TestAccAWSCloudFrontDistribution_S3OriginWithTags (568.65s)
--- PASS: TestAccAWSCloudFrontDistribution_OriginGroups (346.83s)
--- PASS: TestAccAWSCloudFrontDistribution_WaitForDeployment (386.97s)
--- FAIL: TestAccAWSCloudFrontDistribution_originPolicy (11.53s) -- unrelated to changes here; relates to #17342
… failure. Acceptance test output: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSCloudFrontRealtimeLogConfig_basic' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSCloudFrontRealtimeLogConfig_basic -timeout 120m === RUN TestAccAWSCloudFrontRealtimeLogConfig_basic === PAUSE TestAccAWSCloudFrontRealtimeLogConfig_basic === CONT TestAccAWSCloudFrontRealtimeLogConfig_basic --- PASS: TestAccAWSCloudFrontRealtimeLogConfig_basic (55.83s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 55.936s
@anGie44 Nits picked. |
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 @ewbankkit ! Last 2 I promise 🤣
Co-authored-by: angie pinilla <angelinepinilla@gmail.com>
Co-authored-by: angie pinilla <angelinepinilla@gmail.com>
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
Closes: #14944.
Output from acceptance testing: