Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dwardu89 authored Feb 4, 2021
1 parent ecb99c0 commit 94937b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var AWS = require('aws-sdk');
const { SSM } = require("@aws-sdk/client-ssm");

try {
console.log(`Storing Variable in path [${core.getInput('ssm-path', { required: true })}]`);
// Set the region
AWS.config.update({ region: core.getInput('aws-region') });
// Load the AWS Region to use in SSM
Expand All @@ -18,7 +19,7 @@ try {
Description: core.getInput('ssm-value-description')
}
ssm.putParameter({ params }).then(value => {
console.log(`Storing Variable in path [${ssm_path_name}]`);
console.log(`Storing Variable in path [${value}]`);
}).catch(reason => {
core.setFailed(reason);
})
Expand Down

0 comments on commit 94937b4

Please sign in to comment.