Skip to content

Commit d742e1f

Browse files
authored
Merge pull request #553 from hashicorp/karthik/run_tags_for_iam
attaching run tags to Iam Instance Profile for ebsvolume, ebssurrogate and instance builder
2 parents 780d16c + 224967e commit d742e1f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

builder/ebssurrogate/builder.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook)
432432
IamInstanceProfile: b.config.IamInstanceProfile,
433433
SkipProfileValidation: b.config.SkipProfileValidation,
434434
TemporaryIamInstanceProfilePolicyDocument: b.config.TemporaryIamInstanceProfilePolicyDocument,
435+
Tags: b.config.RunTags,
436+
Ctx: b.config.ctx,
435437
},
436438
&awscommon.StepCleanupVolumes{
437439
LaunchMappings: b.config.LaunchMappings.Common(),

builder/ebsvolume/builder.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook)
316316
IamInstanceProfile: b.config.IamInstanceProfile,
317317
SkipProfileValidation: b.config.SkipProfileValidation,
318318
TemporaryIamInstanceProfilePolicyDocument: b.config.TemporaryIamInstanceProfilePolicyDocument,
319+
Tags: b.config.RunTags,
320+
Ctx: b.config.ctx,
319321
},
320322
instanceStep,
321323
&stepTagEBSVolumes{

builder/instance/builder.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook)
387387
IamInstanceProfile: b.config.IamInstanceProfile,
388388
SkipProfileValidation: b.config.SkipProfileValidation,
389389
TemporaryIamInstanceProfilePolicyDocument: b.config.TemporaryIamInstanceProfilePolicyDocument,
390+
Tags: b.config.RunTags,
391+
Ctx: b.config.ctx,
390392
},
391393
instanceStep,
392394
&awscommon.StepGetPassword{

0 commit comments

Comments
 (0)