From b780af45fcab572755064c02aefee6225515b2d5 Mon Sep 17 00:00:00 2001 From: Brandon Wagner Date: Tue, 21 Sep 2021 18:34:52 -0500 Subject: [PATCH] use instanceProfile from aws cloudprovider constraints api (#694) --- pkg/cloudprovider/aws/launchtemplate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloudprovider/aws/launchtemplate.go b/pkg/cloudprovider/aws/launchtemplate.go index 582ac7af0525..7a93b63df744 100644 --- a/pkg/cloudprovider/aws/launchtemplate.go +++ b/pkg/cloudprovider/aws/launchtemplate.go @@ -172,7 +172,7 @@ func (p *LaunchTemplateProvider) createLaunchTemplate(ctx context.Context, optio LaunchTemplateName: aws.String(launchTemplateName(options)), LaunchTemplateData: &ec2.RequestLaunchTemplateData{ IamInstanceProfile: &ec2.LaunchTemplateIamInstanceProfileSpecificationRequest{ - Name: aws.String(fmt.Sprintf("KarpenterNodeInstanceProfile-%s", options.ClusterName)), + Name: aws.String(options.InstanceProfile), }, TagSpecifications: []*ec2.LaunchTemplateTagSpecificationRequest{{ ResourceType: aws.String(ec2.ResourceTypeInstance),