diff --git a/terraform/main.tf b/terraform/main.tf index 7079eb2a0bd9bdb2404a715f51ade71a3a6a1bed..b0b6e8974e5b578687dd1ee8cb50142e133f5a47 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -73,6 +73,11 @@ resource "scaleway_instance_server" "user_instance_server" { cloud-init = file("../instance-scripts/cloud-init.yml") } + root_volume { + volume_type = "b_ssd" + size_in_gb = var.INSTANCE_VOLUME_GB + } + depends_on = [ scaleway_instance_ip.public_ip, scaleway_instance_security_group.www, diff --git a/terraform/variables-gitlab.tf b/terraform/variables-gitlab.tf index 28be7e276478c77e3763986db3d2a179999695f2..c7effd2b28a7ff3b97890971bae599556f6a8541 100644 --- a/terraform/variables-gitlab.tf +++ b/terraform/variables-gitlab.tf @@ -46,7 +46,14 @@ variable "INSTANCE_TYPE" { description = "Type of instance to create" } +variable "INSTANCE_VOLUME_GB" { + type = number + description = "Number of b_ssd GB storage to attach to the instance" +} + variable "ENVIRONMENT" { type = string description = "Environment of the deployment, contained in domains, subdomains and resources name convention" } + +