mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-05-01 12:54:29 +02:00
feat: Require users to supply OS via ami_type and not via platform which is unable to distinquish between the number of variants supported today (#3068)
This commit is contained in:
@@ -25,9 +25,8 @@ locals {
|
||||
AL2023_x86_64_STANDARD = "al2023"
|
||||
AL2023_ARM_64_STANDARD = "al2023"
|
||||
}
|
||||
# Try to use `ami_type` first, but fall back to current, default behavior
|
||||
# TODO - will be removed in v21.0
|
||||
user_data_type = try(local.ami_type_to_user_data_type[var.ami_type], var.platform)
|
||||
|
||||
user_data_type = local.ami_type_to_user_data_type[var.ami_type]
|
||||
|
||||
# Map the AMI type to the respective SSM param path
|
||||
ami_type_to_ssm_param = {
|
||||
|
||||
Reference in New Issue
Block a user