Skip to content

Commit 3375048

Browse files
authored
Merge pull request #119 from cjgarson/patch-1
allow option to only assign AWS private address to prevent public ip charges
2 parents 3b473c7 + 1e1290a commit 3375048

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/asr-providers/aws.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = class AWSAsrProvider extends AbstractASRProvider{
3434
"vpc": "",
3535
"subnet": "",
3636
"usePrivateAddress": false,
37+
"assignPrivateAddressOnly": false,
3738
"securityGroup": "CHANGEME!",
3839
"maxRuntime": -1,
3940
"maxUploadTime": -1,
@@ -190,6 +191,9 @@ module.exports = class AWSAsrProvider extends AbstractASRProvider{
190191

191192
if (this.getConfig("usePrivateAddress")) {
192193
args.push("--amazonec2-use-private-address");
194+
if(this.getConfig("assignPrivateAddressOnly")) {
195+
args.push("--amazonec2-private-address-only");
196+
}
193197
}
194198

195199
if (this.getConfig("engineInstallUrl")){

0 commit comments

Comments
 (0)