Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions resources/terraform/devnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ module "devnet" {
regions = var.aws_region
instance-count = var.instance_count["bootstrap"]
docker-org = "autonomys"
docker-tag = "mainnet-2024-nov-18"
docker-tag = "test-mainnet-upgrade"
reserved-only = false
prune = false
genesis-hash = "b256e3ca1d3ef43c1e52799df670aa307671b9e468c500def1f5b6b77173b5d4"
genesis-hash = "296aab9fb53eeb37a1757b35ed4c4b6c6f903d6b996cf7cd908a753f6eb762d5"
dsn-listen-port = 30533
node-dsn-port = 30433
disk-volume-size = var.disk_volume_size
Expand All @@ -26,10 +26,10 @@ module "devnet" {
regions = var.aws_region
instance-count = var.instance_count["evm_bootstrap"]
docker-org = "autonomys"
docker-tag = "mainnet-2024-nov-18"
docker-tag = "test-mainnet-upgrade"
reserved-only = false
prune = false
genesis-hash = "b256e3ca1d3ef43c1e52799df670aa307671b9e468c500def1f5b6b77173b5d4"
genesis-hash = "296aab9fb53eeb37a1757b35ed4c4b6c6f903d6b996cf7cd908a753f6eb762d5"
dsn-listen-port = 30533
node-dsn-port = 30433
operator-port = 30334
Expand All @@ -43,10 +43,10 @@ module "devnet" {
regions = var.aws_region
instance-count = var.instance_count["autoid_bootstrap"]
docker-org = "autonomys"
docker-tag = "mainnet-2024-nov-18"
docker-tag = "test-mainnet-upgrade"
reserved-only = false
prune = false
genesis-hash = "b256e3ca1d3ef43c1e52799df670aa307671b9e468c500def1f5b6b77173b5d4"
genesis-hash = "296aab9fb53eeb37a1757b35ed4c4b6c6f903d6b996cf7cd908a753f6eb762d5"
dsn-listen-port = 30533
node-dsn-port = 30433
operator-port = 30334
Expand All @@ -60,7 +60,7 @@ module "devnet" {
regions = var.aws_region
instance-count = var.instance_count["rpc-indexer"]
docker-org = "autonomys"
docker-tag = "mainnet-2024-nov-18"
docker-tag = "test-mainnet-upgrade"
domain-prefix = "rpc-indexer"
reserved-only = false
prune = false
Expand All @@ -75,7 +75,7 @@ module "devnet" {
regions = var.aws_region
instance-count = var.instance_count["auto-evm-indexer"]
docker-org = "autonomys"
docker-tag = "mainnet-2024-nov-18"
docker-tag = "test-mainnet-upgrade"
domain-prefix = "auto-evm-indexer"
reserved-only = false
prune = false
Expand All @@ -93,7 +93,7 @@ module "devnet" {
regions = var.aws_region
instance-count = var.instance_count["rpc"]
docker-org = "autonomys"
docker-tag = "mainnet-2024-nov-18"
docker-tag = "test-mainnet-upgrade"
domain-prefix = "rpc"
reserved-only = false
prune = false
Expand All @@ -108,7 +108,7 @@ module "devnet" {
regions = var.aws_region
instance-count = var.instance_count["domain"]
docker-org = "autonomys"
docker-tag = "mainnet-2024-nov-18"
docker-tag = "test-mainnet-upgrade"
domain-prefix = ["auto-evm", "autoid"]
reserved-only = false
prune = false
Expand All @@ -126,7 +126,7 @@ module "devnet" {
regions = var.aws_region
instance-count = var.instance_count["farmer"]
docker-org = "autonomys"
docker-tag = "mainnet-2024-nov-18"
docker-tag = "test-mainnet-upgrade"
reserved-only = false
prune = false
plot-size = "10G"
Expand Down
18 changes: 9 additions & 9 deletions resources/terraform/devnet/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ variable "domain_labels" {
variable "instance_type" {
type = map(string)
default = {
bootstrap = "m7a.xlarge"
rpc = "m7a.xlarge"
domain = "m7a.xlarge"
rpc-indexer = "m7a.xlarge"
auto-evm-indexer = "m7a.xlarge"
bootstrap = "m6a.xlarge"
rpc = "m6a.xlarge"
domain = "m6a.xlarge"
rpc-indexer = "m6a.xlarge"
auto-evm-indexer = "m6a.xlarge"
farmer = "c7a.2xlarge"
evm_bootstrap = "m7a.xlarge"
autoid_bootstrap = "m7a.xlarge"
evm_bootstrap = "m6a.xlarge"
autoid_bootstrap = "m6a.xlarge"
}
}

Expand Down Expand Up @@ -67,8 +67,8 @@ variable "instance_count" {
autoid = 0
rpc-indexer = 0
auto-evm-indexer = 0
farmer = 1
evm_bootstrap = 0
farmer = 0
evm_bootstrap = 1
autoid_bootstrap = 0
}
}
Expand Down
15 changes: 8 additions & 7 deletions resources/terraform/mainnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module "mainnet" {
regions = var.aws_region
instance-count = var.instance_count["evm_bootstrap"]
docker-org = "autonomys"
docker-tag = "mainnet-2025-jan-14"
docker-tag = "mainnet-2025-jun-06"
reserved-only = false
prune = false
genesis-hash = "b256e3ca1d3ef43c1e52799df670aa307671b9e468c500def1f5b6b77173b5d4"
Expand All @@ -43,7 +43,7 @@ module "mainnet" {
regions = var.aws_region
instance-count = var.instance_count["autoid_bootstrap"]
docker-org = "autonomys"
docker-tag = "mainnet-2025-jan-14"
docker-tag = "mainnet-2025-jun-06"
reserved-only = false
prune = false
genesis-hash = "b256e3ca1d3ef43c1e52799df670aa307671b9e468c500def1f5b6b77173b5d4"
Expand All @@ -60,7 +60,7 @@ module "mainnet" {
regions = var.aws_region
instance-count = var.instance_count["rpc-indexer"]
docker-org = "autonomys"
docker-tag = "mainnet-2025-jan-14"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets not update mainnet bootstrap nodes yet. We still want them on Jan-14 release

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is still showing me jun-06.

Are these not boostrap nodes ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm. Got it

docker-tag = "mainnet-2025-jun-06"
domain-prefix = "rpc-indexer"
reserved-only = false
prune = false
Expand All @@ -75,7 +75,7 @@ module "mainnet" {
regions = var.aws_region
instance-count = var.instance_count["auto-evm-indexer"]
docker-org = "autonomys"
docker-tag = "mainnet-2025-jan-14"
docker-tag = "mainnet-2025-jun-06"
domain-prefix = "auto-evm-indexer"
reserved-only = false
prune = false
Expand All @@ -93,7 +93,7 @@ module "mainnet" {
regions = var.aws_region
instance-count = var.instance_count["rpc"]
docker-org = "autonomys"
docker-tag = "mainnet-2025-jan-14"
docker-tag = "mainnet-2025-jun-06"
domain-prefix = "rpc"
reserved-only = false
prune = false
Expand All @@ -108,7 +108,7 @@ module "mainnet" {
regions = var.aws_region
instance-count = var.instance_count["domain"]
docker-org = "autonomys"
docker-tag = "mainnet-2025-jan-14"
docker-tag = "mainnet-2025-jun-06"
domain-prefix = ["auto-evm", "autoid"]
reserved-only = false
prune = false
Expand All @@ -126,7 +126,7 @@ module "mainnet" {
regions = var.aws_region
instance-count = var.instance_count["farmer"]
docker-org = "autonomys"
docker-tag = "mainnet-2025-jan-14"
docker-tag = "mainnet-2025-jun-06"
reserved-only = false
prune = false
plot-size = "10G"
Expand All @@ -142,6 +142,7 @@ module "mainnet" {

cloudflare_api_token = var.cloudflare_api_token
cloudflare_email = var.cloudflare_email
cloudflare_zone_id = var.cloudflare_zone_id
nr_api_key = var.nr_api_key
access_key = var.access_key
secret_key = var.secret_key
Expand Down
22 changes: 14 additions & 8 deletions resources/terraform/mainnet/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ variable "network_name" {
default = "mainnet"

}

variable "cloudflare_zone_id" {
description = "Cloudflare zone ID"
type = string
}

variable "farmer_reward_address" {
description = "Farmer's reward address"
type = string
Expand Down Expand Up @@ -49,27 +55,27 @@ variable "vpc_cidr_block" {
variable "azs" {
type = string
description = "Availability Zones"
default = "us-east-1a"
default = "us-west-1a"
}

variable "instance_count" {
type = map(number)
default = {
bootstrap = 2
rpc = 2
domain = 2
rpc-indexer = 1
bootstrap = 0
rpc = 0
domain = 4
rpc-indexer = 0
auto-evm-indexer = 0
farmer = 1
evm_bootstrap = 0
farmer = 0
evm_bootstrap = 1
autoid_bootstrap = 0
}
}

variable "aws_region" {
description = "aws region"
type = list(string)
default = ["us-east-1"]
default = ["us-west-2"]
}

variable "public_subnet_cidrs" {
Expand Down
18 changes: 9 additions & 9 deletions templates/terraform/network-primitives/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "cloudflare_dns_record" "rpc" {
name = "${var.rpc-node-config.domain-prefix}-${count.index}.${var.network_name}"
content = local.rpc_nodes_ip_v4[count.index]
type = "A"
ttl = 3600
ttl = 1
proxied = true
}

Expand All @@ -39,8 +39,8 @@ resource "cloudflare_dns_record" "auto_evm" {
name = "${var.domain-node-config.domain-prefix[0]}-${each.key}.${var.network_name}"
content = each.value.ip_v4
type = "A"
ttl = 3600
proxied = true
ttl = 1
proxied = true
}

resource "cloudflare_dns_record" "auto_evm_ipv6" {
Expand All @@ -49,8 +49,8 @@ resource "cloudflare_dns_record" "auto_evm_ipv6" {
name = "${var.domain-node-config.domain-prefix[0]}-${each.key}.${var.network_name}"
content = each.value.ip_v6
type = "AAAA"
ttl = 3600
proxied = true
ttl = 1
proxied = true
}

resource "cloudflare_dns_record" "rpc-indexer" {
Expand Down Expand Up @@ -79,8 +79,8 @@ resource "cloudflare_dns_record" "autoid" {
name = "${var.domain-node-config.domain-prefix[1]}-${each.key}.${var.network_name}"
content = each.value.ip_v4
type = "A"
ttl = 3600
proxied = true
ttl = 1
proxied = true
}

resource "cloudflare_dns_record" "autoid_ipv6" {
Expand All @@ -89,8 +89,8 @@ resource "cloudflare_dns_record" "autoid_ipv6" {
name = "${var.domain-node-config.domain-prefix[1]}-${each.key}.${var.network_name}"
content = each.value.ip_v6
type = "AAAA"
ttl = 3600
proxied = true
ttl = 1
proxied = true
}

resource "cloudflare_dns_record" "bootstrap" {
Expand Down
18 changes: 9 additions & 9 deletions templates/terraform/network-primitives/instances.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ resource "aws_instance" "bootstrap_node" {

lifecycle {

ignore_changes = [ami, ipv6_address_count]
ignore_changes = [ami, ipv6_address_count, associate_public_ip_address]

}

Expand Down Expand Up @@ -101,7 +101,7 @@ resource "aws_instance" "bootstrap_node_evm" {

lifecycle {

ignore_changes = [ami, ipv6_address_count]
ignore_changes = [ami, ipv6_address_count, associate_public_ip_address]

}

Expand Down Expand Up @@ -165,7 +165,7 @@ resource "aws_instance" "bootstrap_node_autoid" {

lifecycle {

ignore_changes = [ami, ipv6_address_count]
ignore_changes = [ami, ipv6_address_count, associate_public_ip_address]

}

Expand Down Expand Up @@ -228,7 +228,7 @@ resource "aws_instance" "rpc_indexer_node" {

lifecycle {

ignore_changes = [ami, ipv6_address_count]
ignore_changes = [ami, ipv6_address_count, associate_public_ip_address]

}

Expand Down Expand Up @@ -291,7 +291,7 @@ resource "aws_instance" "auto_evm_indexer_node" {

lifecycle {

ignore_changes = [ami, ipv6_address_count]
ignore_changes = [ami, ipv6_address_count, associate_public_ip_address]

}

Expand Down Expand Up @@ -353,7 +353,7 @@ resource "aws_instance" "rpc_node" {

lifecycle {

ignore_changes = [ami, ipv6_address_count]
ignore_changes = [ami, ipv6_address_count, associate_public_ip_address]

}

Expand Down Expand Up @@ -418,7 +418,7 @@ resource "aws_instance" "evm_node" {

lifecycle {

ignore_changes = [ami, ipv6_address_count]
ignore_changes = [ami, ipv6_address_count, associate_public_ip_address]

}

Expand Down Expand Up @@ -481,7 +481,7 @@ resource "aws_instance" "autoid_node" {

lifecycle {

ignore_changes = [ami, ipv6_address_count]
ignore_changes = [ami, ipv6_address_count, associate_public_ip_address]

}

Expand Down Expand Up @@ -543,7 +543,7 @@ resource "aws_instance" "farmer_node" {

lifecycle {

ignore_changes = [ami, ipv6_address_count]
ignore_changes = [ami, ipv6_address_count, associate_public_ip_address]

}

Expand Down