terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 5.13.1" } } } # Default provider "aws" { region = "us-east-1" } # WARNING: APSE-1 will only be used to host rpc node # Workaround to avoid conflicts with existing ecs cluster in existing regions provider "aws" { alias = "ap-southeast-1" region = "ap-southeast-1" } module "testnet-rpc" { source = "./module/region" region = "ap-southeast-1" nodeKeys = local.rpcTestnetNodeKeys enableFixedIp = true logLevel = local.logLevel xdc_ecs_tasks_execution_role_arn = aws_iam_role.xdc_ecs_tasks_execution_role.arn cpu = 1024 memory = 4096 network = "testnet" vpc_cidr = "10.1.0.0/16" subnet_cidr = "10.1.0.0/20" providers = { aws = aws.ap-southeast-1 } } module "mainnet-rpc" { source = "./module/region" region = "ap-southeast-1" nodeKeys = local.rpcMainnetNodeKeys enableFixedIp = true logLevel = local.logLevel xdc_ecs_tasks_execution_role_arn = aws_iam_role.xdc_ecs_tasks_execution_role.arn cpu = 1024 memory = 4096 network = "mainnet" vpc_cidr = "10.2.0.0/16" subnet_cidr = "10.2.0.0/20" providers = { aws = aws.ap-southeast-1 } }