@@ -49,6 +49,7 @@ var checkCommand = &cobra.Command{ // nolint:gochecknoglobals
49
49
return fmt .Errorf ("❌ error creating IAM role and attaching policy: %v" , err )
50
50
}
51
51
Roles = append (Roles , * role .RoleName )
52
+ log .Info ("✅ IAM role created and policy attached" )
52
53
53
54
instanceProfile , err := createInstanceProfileAndAttachRole (cmd .Context (), iamClient , * role .RoleName )
54
55
if err != nil {
@@ -60,7 +61,7 @@ var checkCommand = &cobra.Command{ // nolint:gochecknoglobals
60
61
slices .Sort (allSubnets )
61
62
distinctSubnets := slices .Compact (allSubnets )
62
63
if len (distinctSubnets ) < len (allSubnets ) {
63
- log .Info ("ℹ️ Found duplicate subnets. We'll test each subnet only once, starting with main." )
64
+ log .Infof ("ℹ️ Found duplicate subnets. We'll test each subnet '%v' only once." , distinctSubnets )
64
65
}
65
66
66
67
log .Infof ("ℹ️ Launching EC2 instances in Main subnets" )
@@ -256,7 +257,7 @@ func launchInstances(ctx context.Context, ec2Client *ec2.Client, subnets []strin
256
257
var instanceIds []string
257
258
for _ , subnet := range subnets {
258
259
if _ , ok := Subnets [subnet ]; ok {
259
- log .Warnf ("Subnet '%v' was already launched , skipping" , subnet )
260
+ log .Warnf ("An EC2 instance was already created for subnet '%v' , skipping" , subnet )
260
261
continue
261
262
}
262
263
secGroup , err := createSecurityGroups (ctx , ec2Client , subnet )
0 commit comments