Skip to content

Commit

Permalink
Add volume type var
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankApiyo committed Dec 11, 2024
1 parent c49da16 commit e33c8e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compute.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "aws_launch_configuration" "main" {
iam_instance_profile = aws_iam_instance_profile.ec2.name

root_block_device {
volume_type = "gp2"
volume_type = var.storage_class
volume_size = var.attached_volume_size
delete_on_termination = true
}
Expand Down
4 changes: 4 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
variable "deployment" {}
variable "env" {}
variable "storage_class" {
description = "storage class"
default = "gp2"
}
variable "project" {}
variable "project_id" {}
variable "deployment_type" {
Expand Down

0 comments on commit e33c8e4

Please sign in to comment.