diff --git a/internal/service/ec2/ec2_instance.go b/internal/service/ec2/ec2_instance.go index 4995280fa04f..55ae03f73f98 100644 --- a/internal/service/ec2/ec2_instance.go +++ b/internal/service/ec2/ec2_instance.go @@ -1087,9 +1087,7 @@ func resourceInstanceCreate(ctx context.Context, d *schema.ResourceData, meta in log.Printf("[ERR] Error creating tags for EBS volume %s: %s", vol, err) } } - } - // Update if we need to return append(diags, resourceInstanceUpdate(ctx, d, meta)...) } @@ -1492,7 +1490,6 @@ func resourceInstanceUpdate(ctx context.Context, d *schema.ResourceData, meta in } if d.HasChange("root_block_device.0.tags") { - tagSpecifications := getTagSpecificationsIn(ctx, ec2.ResourceTypeInstance) // Declare the map outside the loops so values aren't overwritten @@ -2643,7 +2640,6 @@ func readBlockDeviceMappingsFromConfig(ctx context.Context, d *schema.ResourceDa } } } - return blockDevices, nil }