I Cloudfront Ungültigkeits mit dem folgenden Code auszuführen bin versucht:AWS Cloudfront createInvalidation
var cloudfront = new AWS.CloudFront({s3BucketEndpoint: <String Bucketname>});
var params = {
DistributionId: <String ID>,
InvalidationBatch: {
CallerReference: 'Cloudfront Invalidation',
Paths: {
Quantity: 1,
Items: [
'/*'
]
}
}
};
cloudfront.createInvalidation(params, function(err, data){
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Allerdings bekomme ich keine Antwort auf meine createInvalidation Funktion von err oder Daten. Die Dokumentation für die aws sdk besagt, dass Sie eine positive/negative Antwort erhalten sollten, aber es wird nichts zurückgegeben und keine Ungültigmachung durchgeführt.