increase mainnet rpc volume (#552)

This commit is contained in:
Wanwiset Peerapatanapokin 2024-05-30 15:14:10 +04:00 committed by GitHub
parent 487593bfe6
commit abb1941acf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -86,6 +86,7 @@ module "devnet_rpc" {
instance_type = "t3.large"
ssh_key_name = local.ssh_key_name
rpc_image = local.rpc_image
volume_size = 1500
providers = {
aws = aws.ap-southeast-1
@ -101,6 +102,7 @@ module "testnet_rpc" {
instance_type = "t3.large"
ssh_key_name = local.ssh_key_name
rpc_image = local.rpc_image
volume_size = 1500
providers = {
aws = aws.ap-southeast-1
@ -116,6 +118,7 @@ module "mainnet_rpc" {
instance_type = "t3.large"
ssh_key_name = local.ssh_key_name
rpc_image = local.rpc_image
volume_size = 3000
providers = {
aws = aws.ap-southeast-1

View file

@ -27,6 +27,9 @@ variable ssh_key_name {
variable rpc_image {
type = string
}
variable volume_size{
type = number
}
resource "aws_security_group" "rpc_sg" {
name_prefix = "${var.network}_rpc_sg"
@ -75,9 +78,9 @@ resource "aws_instance" "rpc_instance" {
}
key_name = var.ssh_key_name
vpc_security_group_ids = [aws_security_group.rpc_sg.id]
ebs_block_device {
device_name = "/dev/xvda"
volume_size = 500
root_block_device {
volume_size = var.volume_size
}