Skip to content
Open
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
2 changes: 2 additions & 0 deletions terraform/account-wide-infrastructure/dev/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ module "powerbi_gw_instance" {
glue_kms_key_arn = module.dev-glue.aws_kms_key_arn
athena_kms_key_arn = module.dev-athena[0].kms_key_arn
athena_bucket_arn = module.dev-athena[0].bucket_arn
root_volume_size = var.powerbi_gw_root_volume_size
root_volume_iops = var.powerbi_gw_root_volume_iops

subnet_id = module.vpc[0].private_subnet_id
security_groups = [module.vpc[0].powerbi_gw_security_group_id]
Expand Down
12 changes: 12 additions & 0 deletions terraform/account-wide-infrastructure/dev/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,15 @@ variable "use_powerbi_gw_custom_ami" {
description = "Use custom image for PowerBI GW instance"
default = true
}

variable "powerbi_gw_root_volume_size" {
type = number
description = "Size of the root EBS volume in GB"
default = 40
}

variable "powerbi_gw_root_volume_iops" {
type = number
description = "IOPS for the root EBS volume"
default = 3000
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ resource "aws_instance" "powerbi_gw" {
vpc_security_group_ids = var.security_groups

root_block_device {
volume_size = 40
volume_type = "gp2"
volume_size = var.root_volume_size
volume_type = "gp3"
iops = var.root_volume_iops
}

user_data = file("${path.module}/scripts/user_data.tpl")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ variable "athena_kms_key_arn" {}
variable "target_bucket_arn" {}
variable "athena_bucket_arn" {}
variable "use_custom_ami" {}
variable "root_volume_size" {
type = number
description = "Size of the root EBS volume in GB"
default = 40
}
variable "root_volume_iops" {
type = number
description = "IOPS for the root EBS volume if using io1 or gp3 volume type"
default = 3000
}
2 changes: 2 additions & 0 deletions terraform/account-wide-infrastructure/prod/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ module "powerbi_gw_instance" {
glue_kms_key_arn = module.prod-glue.aws_kms_key_arn
athena_kms_key_arn = module.prod-athena[0].kms_key_arn
athena_bucket_arn = module.prod-athena[0].bucket_arn
root_volume_size = var.powerbi_gw_root_volume_size
root_volume_iops = var.powerbi_gw_root_volume_iops

subnet_id = module.vpc[0].private_subnet_id
security_groups = [module.vpc[0].powerbi_gw_security_group_id]
Expand Down
12 changes: 12 additions & 0 deletions terraform/account-wide-infrastructure/prod/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,15 @@ variable "use_powerbi_gw_custom_ami" {
description = "Use custom image for PowerBI GW instance"
default = true
}

variable "powerbi_gw_root_volume_size" {
type = number
description = "Size of the root EBS volume in GB"
default = 256
}

variable "powerbi_gw_root_volume_iops" {
type = number
description = "IOPS for the root EBS volume"
default = 3000
}
2 changes: 2 additions & 0 deletions terraform/account-wide-infrastructure/test/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ module "powerbi_gw_instance" {
glue_kms_key_arn = module.test-glue.aws_kms_key_arn
athena_kms_key_arn = module.test-athena[0].kms_key_arn
athena_bucket_arn = module.test-athena[0].bucket_arn
root_volume_size = var.powerbi_gw_root_volume_size
root_volume_iops = var.powerbi_gw_root_volume_iops

subnet_id = module.vpc[0].private_subnet_id
security_groups = [module.vpc[0].powerbi_gw_security_group_id]
Expand Down
12 changes: 12 additions & 0 deletions terraform/account-wide-infrastructure/test/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,15 @@ variable "use_powerbi_gw_custom_ami" {
description = "Use custom image for PowerBI GW instance"
default = true
}

variable "powerbi_gw_root_volume_size" {
type = number
description = "Size of the root EBS volume in GB"
default = 40
}

variable "powerbi_gw_root_volume_iops" {
type = number
description = "IOPS for the root EBS volume"
default = 3000
}