Skip to content

Commit

Permalink
fix: updated console message, removed comment and deleted aws.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyJackson85 committed Jul 10, 2020
1 parent 8442c12 commit 9bb00d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Empty file.
3 changes: 1 addition & 2 deletions packages/cli-plugin-deploy-components/aws/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ module.exports = {
type: "hook-before-deploy",
name: "hook-before-deploy-aws-credentials",
async hook() {
// check AWS credentials
const sts = new STS();
try {
await sts.getCallerIdentity({}).promise();
} catch (err) {
console.log("Looks like your AWS credentials are not configured correctly!");
console.log(
"Check the AWS credentials documentation: https://docs.webiny.com/docs/guides/aws-credentials/"
"To learn how to configure your AWS credentials, visit https://docs.webiny.com/docs/guides/aws-credentials"
);
process.exit(1);
}
Expand Down

0 comments on commit 9bb00d8

Please sign in to comment.