Skip to content

Commit

Permalink
use instanceProfile from aws cloudprovider constraints api (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 committed Sep 21, 2021
1 parent 903fffc commit b780af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloudprovider/aws/launchtemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit b780af4

Please sign in to comment.