From a51e59f70b36d02527906c9f56cfba71e23e3729 Mon Sep 17 00:00:00 2001 From: Reed Schalo Date: Mon, 20 Feb 2023 14:59:57 -0800 Subject: [PATCH] increase default hop limit to 2 (#371) --- operator/pkg/awsprovider/launchtemplate/reconciler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/operator/pkg/awsprovider/launchtemplate/reconciler.go b/operator/pkg/awsprovider/launchtemplate/reconciler.go index 5b77e8f9..6f45b329 100644 --- a/operator/pkg/awsprovider/launchtemplate/reconciler.go +++ b/operator/pkg/awsprovider/launchtemplate/reconciler.go @@ -150,7 +150,8 @@ func (c *Controller) createLaunchTemplate(ctx context.Context, dataplane *v1alph Name: aws.String(instanceProfile), }, MetadataOptions: &ec2.LaunchTemplateInstanceMetadataOptionsRequest{ - HttpTokens: aws.String(ec2.LaunchTemplateHttpTokensStateRequired), + HttpTokens: aws.String(ec2.LaunchTemplateHttpTokensStateRequired), + HttpPutResponseHopLimit: aws.Int64(2), }, Monitoring: &ec2.LaunchTemplatesMonitoringRequest{Enabled: ptr.Bool(true)}, SecurityGroupIds: []*string{ptr.String(securityGroupID)},