Skip to content

Commit

Permalink
feat(emr-runner): update resources stack before start cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
weixu365 committed Sep 20, 2020
1 parent 087df92 commit 8c05e10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ class Config {
// merge override configs
lodash.forEach(this.overrideSettings, (value, key) => {
lodash.set(configDoc, key, value)
console.log(`override settings: ${key}=${value}`)

if(this.resources != null) {
console.log(`Override settings: ${key}=${value}`)
}
})

this.config = configDoc
Expand Down
2 changes: 1 addition & 1 deletion src/emr_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class EmrRunner {

loadAwsSettings() {
return Bluebird.props({
resources: this.loadResources(),
resources: this.deployResources().then(() => this.loadResources()),
accountId: this.stsClient.getAccount(),
})
.then(({accountId, resources}) => this.config.reloadWithResources(accountId, resources))
Expand Down

0 comments on commit 8c05e10

Please sign in to comment.