Can't create minimal EC2 with Safran Windows2022 OS AMI
The minimal configuration defined in the documentation:
module "ec2" {
source = "git::https://git.cloud.safran/safrangrp/publiccloud/landingzone/shared-modules/terraform-aws-ec2.git?ref=3.0.0"
operating_system = "windows2022"
freetext = "an_identifier"
security = "z1"
environment = "dev"
company = "ccy"
service_id = "s105devtest"
availability_zone = "a"
}
seems to not work when using OS Windows2022
because the corresponding image needs an EBS >= 100Gb
To fix it, it is possible to add:
root_block_device_volume_size = 100
Is it possible to handle the EBS volume size variable validation depending on the OS?