I'm trying to use aws eks managed nodes launch tem...
# aws
I'm trying to use aws eks managed nodes launch templates from dotnet/c# but hitting an issue with `MetadataOptions`:
Copy code
// node launch template; <https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html>
var nodeLaunchTemplate = new LaunchTemplate($"{prefix}-node-lt",
    new LaunchTemplateArgs
        InstanceType = config.InstanceType,
        KeyName = config.KeyName,
        MetadataOptions = new LaunchTemplateMetadataOptionsArgs { HttpPutResponseHopLimit = 2 },
        Tags = config.EnvTags.Merge("Name", $"{prefix}-node"),
        UpdateDefaultVersion = true,
        VpcSecurityGroupIds =
            // <https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html#launch-template-security-groups>
            cluster.VpcConfig.Apply(config => config.ClusterSecurityGroupId!),
            securityGroupStack.Apply(stack => stack.Outputs["InternalAccessSG"])
returns an error:
Copy code
aws:ec2:LaunchTemplate (alpha-eks-node-lt):
    error: 1 error occurred:
        * InvalidParameterValue: A value of '' is not valid for http-endpoint. Valid values are 'enabled' or 'disabled'.
If I remove
it succeeds.