Skip to content

Commit b6fa7b8

Browse files
committed
Prevent error running grunt-cloudfront (closes snowplow#426)
1 parent 9c2d5d2 commit b6fa7b8

2 files changed

Lines changed: 11 additions & 18 deletions

File tree

Gruntfile.js

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ module.exports = function(grunt) {
182182
grunt.loadNpmTasks('grunt-contrib-concat');
183183
grunt.loadNpmTasks('grunt-yui-compressor');
184184
grunt.loadNpmTasks('grunt-aws');
185-
grunt.loadNpmTasks('grunt-cloudfront');
186185
grunt.loadNpmTasks('grunt-browserify');
187186
grunt.loadNpmTasks('intern');
188187
grunt.loadNpmTasks('grunt-lodash');
@@ -232,27 +231,22 @@ module.exports = function(grunt) {
232231

233232
grunt.config('cloudfront', {
234233
options: {
235-
region: 'eu-east-1',
236-
distributionId: '<%= aws.distribution %>',
237-
listInvalidations: true,
238-
listDistributions: true,
239-
credentials: {
240-
accessKeyId: '<%= aws.key %>',
241-
secretAccessKey: '<%= aws.secret %>'
242-
}
234+
accessKeyId: '<%= aws.key %>',
235+
secretAccessKey: '<%= aws.secret %>',
236+
distributionId: '<%= aws.distribution %>'
243237
},
244238
not_pinned: {
245-
CallerReference: Date.now().toString(),
246-
Paths: {
247-
Quantity: 1,
248-
Items: ['/<%= pkg.version %>/sp.js']
239+
options: {
240+
invalidations: [
241+
'/<%= pkg.version %>/sp.js'
242+
]
249243
}
250244
},
251245
pinned: {
252-
CallerReference: Date.now().toString(),
253-
Paths: {
254-
Quantity: 1,
255-
Items: ['/<%= pkg.pinnedVersion %>/sp.js']
246+
options: {
247+
invalidations: [
248+
'/<%= pkg.pinnedVersion %>/sp.js'
249+
]
256250
}
257251
}
258252
});

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"browser-cookie-lite": "~0.3.1",
77
"grunt": "~0.4.2",
88
"grunt-browserify": "~4.0.1",
9-
"grunt-cloudfront": "^0.2.0",
109
"grunt-contrib-concat": "~0.3.0",
1110
"grunt-lodash": "~0.3.0",
1211
"grunt-aws": "~0.6.1",

0 commit comments

Comments
 (0)