Skip to content

Commit

Permalink
chore: run codemod on tools/**/*.js
Browse files Browse the repository at this point in the history
chore: format
  • Loading branch information
trivikr authored and mxdvl committed Nov 13, 2023
1 parent 5085f5e commit b203323
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tools/asset-monitor/cloudwatch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs');
const AWS = require('aws-sdk');
const { CloudWatch } = require('@aws-sdk/client-cloudwatch');

let cloudwatch;

Expand All @@ -19,17 +19,17 @@ module.exports.configure = filename =>
);
}

AWS.config.update({
region: 'eu-west-1',
accessKeyId: module.exports.getProperty('aws.access.key', data),
secretAccessKey: module.exports.getProperty(
'aws.access.secret.key',
data
),
});

try {
cloudwatch = new AWS.CloudWatch();
cloudwatch = new CloudWatch({
region: 'eu-west-1',
credentials: {
accessKeyId: module.exports.getProperty('aws.access.key', data),
secretAccessKey: module.exports.getProperty(
'aws.access.secret.key',
data
),
},
});
return resolve({});
} catch (e) {
return reject(e);
Expand Down

0 comments on commit b203323

Please sign in to comment.