Skip to content

Commit

Permalink
fix: use specified profile for amplify client
Browse files Browse the repository at this point in the history
  • Loading branch information
brettstack committed May 5, 2020
1 parent 5b6a079 commit 65b9bcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ class ServerlessAmplifyPlugin {

this.zipFilePath = '.serverless/ui.zip'

const credentials = new this.serverless.providers.aws.sdk.SharedIniFileCredentials({ profile: this.serverless.getProvider('aws').getProfile() })
const amplifyClient = new this.serverless.providers.aws.sdk.Amplify({
region: this.serverless.getProvider('aws').getRegion()
region: this.serverless.getProvider('aws').getRegion(),
credentials
})

this.amplifyClient = amplifyClient
await this.describeStack({ isPackageStep: true })

Expand Down

0 comments on commit 65b9bcd

Please sign in to comment.