We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cfn-lint
0.85.2
Ubuntu
cfn-lint isn't able to validate AWS::CloudFront::Distribution correctly.
AWS::CloudFront::Distribution
I had the following resource passing:
CloudFrontDistribution: Type: AWS::CloudFront::Distribution Properties: DistributionConfig: Enabled: true Origins: - DomainName: !GetAtt S3Bucket.DomainName Id: !Sub "${BucketName}" OriginAccessControlId: !Ref CloudFrontOriginAccessControl S3OriginConfig: {} DefaultCacheBehavior: TargetOriginId: !Sub "${BucketName}" ViewerProtocolPolicy: "redirect-to-https"
This is not valid though and the deploy would fail:
[ERROR] ResourceType=AWS::CloudFront::Distribution ResourceName=CloudFrontDistribution ResourceStatus=CREATE_FAILED StatusReason="Resource handler returned message: "Invalid request provided: AWS::CloudFront::Distribution: The parameter ForwardedValues is required.
In order for the template to be valid, you either have to provide ForwardedValues (deprecated) or a CachePolicyId.
ForwardedValues
CachePolicyId
cfn-lint warns me that there's a missing required field.
See above.
The text was updated successfully, but these errors were encountered:
Fixing this in v1 since its an easy fix.
Sorry, something went wrong.
@kddejong Seems like you already fixed this issue? If not can you please assign this to me?
I did. This is fixed in the v1 branch. I have left these tickets until v1 is officially released.
No branches or pull requests
CloudFormation Lint Version
0.85.2
What operating system are you using?
Ubuntu
Describe the bug
cfn-lint
isn't able to validateAWS::CloudFront::Distribution
correctly.I had the following resource passing:
This is not valid though and the deploy would fail:
[ERROR] ResourceType=AWS::CloudFront::Distribution ResourceName=CloudFrontDistribution ResourceStatus=CREATE_FAILED StatusReason="Resource handler returned message: "Invalid request provided: AWS::CloudFront::Distribution: The parameter ForwardedValues is required.
In order for the template to be valid, you either have to provide
ForwardedValues
(deprecated) or aCachePolicyId
.Expected behavior
cfn-lint
warns me that there's a missing required field.Reproduction template
See above.
The text was updated successfully, but these errors were encountered: