worried-city-86458
09/23/2020, 12:31 AM// 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:
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 MetadataOptions
it succeeds.