File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ module "ecs_apps" {
121121| target\_ group\_ arns | List of target groups for ASG to register. | ` list(string) ` | ` [] ` | no |
122122| throughput\_ mode | Throughput mode for the file system. Defaults to bursting. Valid values: bursting, provisioned. | ` string ` | ` "bursting" ` | no |
123123| userdata | Extra commands to pass to userdata. | ` string ` | ` "" ` | no |
124+ | volume\_ type | The EBS volume type | ` string ` | ` "gp2" ` | no |
124125| vpc\_ id | VPC ID to deploy the ECS cluster. | ` any ` | n/a | yes |
125126| vpn\_ cidr | Cidr of VPN to grant ssh access to ECS nodes | ` list ` | <pre >[ <br > "10.37.0.0/16"<br >] </pre > | no |
126127| wafv2\_ enable | Deploys WAF V2 with Managed rule groups | ` bool ` | ` false ` | no |
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ variable "architecture" {
1414 default = " x86_64"
1515 description = " Architecture to select the AMI, x86_64 or arm64"
1616}
17+ variable "volume_type" {
18+ default = " gp2"
19+ description = " The EBS volume type"
20+ }
1721
1822variable "on_demand_percentage" {
1923 description = " Percentage of on-demand intances vs spot."
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ resource "aws_launch_template" "ecs" {
2525 ebs {
2626 volume_size = var. instance_volume_size
2727 encrypted = true
28+ volume_type = var. volume_type
2829 kms_key_id = var. ebs_key_arn != " " ? var. ebs_key_arn : null
2930 }
3031 }
You can’t perform that action at this time.
0 commit comments