Skip to content

Commit 264b1ee

Browse files
committed
Merge branch 'fix-instance-destroy' into ndharasz/1.1.4
2 parents 90d3a96 + 5fccab2 commit 264b1ee

9 files changed

Lines changed: 12 additions & 12 deletions

File tree

numerai/cli/destroy_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def destroy_all(ctx, verbose, preserve_node_config):
6262
verbose,
6363
provider,
6464
env_vars=provider_keys,
65-
inputs={"node_config_file": "nodes.json"},
65+
inputs={"node_config_file": "../nodes.json"},
6666
)
6767

6868
except Exception as e:

numerai/cli/node/destroy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def destroy(ctx, preserve_node_config, verbose):
6262
verbose,
6363
provider,
6464
env_vars=provider_keys,
65-
inputs={"node_config_file": "nodes.json"},
65+
inputs={"node_config_file": "../nodes.json"},
6666
)
6767

6868
except Exception as e:

numerai/cli/uninstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def uninstall():
5555
provider=provider,
5656
verbose=True,
5757
env_vars=provider_keys,
58-
inputs={"node_config_file": "nodes.json"},
58+
inputs={"node_config_file": "../nodes.json"},
5959
)
6060

6161
click.secho("cleaning up docker images...")

numerai/cli/upgrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def upgrade(verbose):
210210
verbose,
211211
provider="aws",
212212
env_vars=load_or_init_keys("aws"),
213-
inputs={"node_config_file": "nodes.json"},
213+
inputs={"node_config_file": "../nodes.json"},
214214
)
215215

216216
click.secho("Upgrade complete!", fg="green")

numerai/cli/util/terraform.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def apply_terraform(nodes_config, affected_providers, provider, verbose):
1919
verbose,
2020
affected_provider,
2121
env_vars=load_or_init_keys(affected_provider),
22-
inputs={"node_config_file": "nodes.json"},
22+
inputs={"node_config_file": "../nodes.json"},
2323
)
2424
else:
2525
click.secho(f"provider {affected_provider} not supported", fg="red")
@@ -51,7 +51,7 @@ def create_azure_registry(provider, provider_keys, verbose):
5151
verbose,
5252
"azure",
5353
env_vars=provider_keys,
54-
inputs={"node_config_file": "nodes.json"},
54+
inputs={"node_config_file": "../nodes.json"},
5555
)
5656
res = terraform("output -json acr_repo_details", True, provider).decode("utf-8")
5757
return json.loads(res)
@@ -64,13 +64,13 @@ def create_gcp_registry(provider, verbose):
6464
'apply -target="google_project_service.cloud_resource_manager" -auto-approve ',
6565
verbose,
6666
"gcp",
67-
inputs={"node_config_file": "nodes.json"},
67+
inputs={"node_config_file": "../nodes.json"},
6868
)
6969
terraform(
7070
'apply -target="google_artifact_registry_repository.registry[0]" -auto-approve ',
7171
verbose,
7272
"gcp",
73-
inputs={"node_config_file": "nodes.json"},
73+
inputs={"node_config_file": "../nodes.json"},
7474
)
7575
res = terraform("output -json artifact_registry_details", True, provider).decode(
7676
"utf-8"

numerai/terraform/aws/-inputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ variable "az_count" {
1313
variable "node_config_file" {
1414
description = "Path to the json file used to configure nodes"
1515
type = string
16-
default = "nodes.json"
16+
default = "../nodes.json"
1717
}
1818

1919
variable "node_container_port" {

numerai/terraform/aws/aws/cluster.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ resource "aws_launch_template" "node" {
110110
}
111111

112112
resource "aws_batch_compute_environment" "node" {
113-
compute_environment_name_prefix = "${local.node_prefix}-"
113+
compute_environment_name = "${local.node_prefix}-compute"
114114

115115
compute_resources {
116116
instance_role = aws_iam_instance_profile.batch_ecs_instance_role.arn

numerai/terraform/azure/input.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ variable "az_resource_group_location" {
99
variable "node_config_file" {
1010
description = "Path to the json file used to configure nodes"
1111
type = string
12-
default = "nodes.json"
12+
default = "../nodes.json"
1313
}
1414

1515
variable "node_container_port" {

numerai/terraform/gcp/-inputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ variable "region" {
77
variable "node_config_file" {
88
description = "Path to the json file used to configure nodes"
99
type = string
10-
default = "nodes.json"
10+
default = "../nodes.json"
1111
}

0 commit comments

Comments
 (0)