Skip to content

Commit

Permalink
Merge pull request #119 from cjgarson/patch-1
Browse files Browse the repository at this point in the history
allow option to only assign AWS private address to prevent public ip charges
  • Loading branch information
pierotofy authored Sep 18, 2024
2 parents 3b473c7 + 1e1290a commit 3375048
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/asr-providers/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = class AWSAsrProvider extends AbstractASRProvider{
"vpc": "",
"subnet": "",
"usePrivateAddress": false,
"assignPrivateAddressOnly": false,
"securityGroup": "CHANGEME!",
"maxRuntime": -1,
"maxUploadTime": -1,
Expand Down Expand Up @@ -190,6 +191,9 @@ module.exports = class AWSAsrProvider extends AbstractASRProvider{

if (this.getConfig("usePrivateAddress")) {
args.push("--amazonec2-use-private-address");
if(this.getConfig("assignPrivateAddressOnly")) {
args.push("--amazonec2-private-address-only");
}
}

if (this.getConfig("engineInstallUrl")){
Expand Down

0 comments on commit 3375048

Please sign in to comment.