AWS::Cloudfront::PublicKey is showing false positive when you run the drift on the resource. The resource created using CFN template and the describe call on resource have escape characters "\n" "\r" depending on how the EncodedKey value is passed to PublicKey, which is causing a drift since, CFN as well as CloudFront add these character based on the lines and spaces.
Expected Behavior
CFN should ignore escape character in EncodedKey value when comparing the resource or standardised the creation of resource for using escape characters
Observed Behavior
The False positive result for drift is shown when running drift against AWS::Cloudfront::PublicKey resource for EncodedKey value due to escape character "\n" "\r"
Name of the resource
AWS::CloudFront::PublicKey
Resource Name
No response
Issue Description
AWS::Cloudfront::PublicKey is showing false positive when you run the drift on the resource. The resource created using CFN template and the describe call on resource have escape characters "\n" "\r" depending on how the EncodedKey value is passed to PublicKey, which is causing a drift since, CFN as well as CloudFront add these character based on the lines and spaces.
Expected Behavior
CFN should ignore escape character in EncodedKey value when comparing the resource or standardised the creation of resource for using escape characters
Observed Behavior
The False positive result for drift is shown when running drift against AWS::Cloudfront::PublicKey resource for EncodedKey value due to escape character "\n" "\r"
Test Cases
Template1
The resource show drift with below details: Expected
Actual
Template2
Expected
Actual
Other Details
No response