I am having some issues w/ using CloudFormation and CloudFront. I have been using the AWS resources to form my template, found here
"OpenVPNCloudFront" : {
"Type" : "AWS::CloudFront::Distribution",
"Properties": {
"DistributionConfig" : {
"Origins" : [ {
"DomainName" : {
"Fn::Join" : [ "", [
{"Ref" : "AWS::StackName"}, ".",
{"Ref" : "HostedZone"}
] ]
},
"Id" : "OpenVPNCF",
"CustomOriginConfig" : {
"HTTPSPort" : "443",
"OriginProtocolPolicy" : "https-only"
}
} ],
"Enabled" : "true",
"Aliases" : [{"Ref" : "DomainName"} ],
},
"ViewerCertificate": { "CloudFrontDefaultCertificate" : "true" }
}
},
More JSON here
I keep getting Template validation error: Template format error: JSON not well-formed. (line 147, column 17)
which is right after the DistributionConfig. I have tried putting this through JSONlint but did not get any hints on it and its getting increasingly frusterating for me. Can someone please tell me what may be wrong with this JSON template?