File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -97,11 +97,14 @@ resource "aws_launch_template" "this" {
97
97
resource_type = " instance"
98
98
tags = local. tags
99
99
}
100
-
101
100
tag_specifications {
102
101
resource_type = " volume"
103
102
tags = local. tags
104
103
}
104
+ tag_specifications {
105
+ resource_type = " network-interface"
106
+ tags = local. tags
107
+ }
105
108
106
109
tags = local. tags
107
110
Original file line number Diff line number Diff line change @@ -308,6 +308,10 @@ resource "aws_launch_template" "gitlab_runner_instance" {
308
308
resource_type = " volume"
309
309
tags = local. tags
310
310
}
311
+ tag_specifications {
312
+ resource_type = " network-interface"
313
+ tags = local. tags
314
+ }
311
315
dynamic "tag_specifications" {
312
316
for_each = var. runner_instance . spot_price == null || var. runner_instance . spot_price == " " ? [] : [" spot" ]
313
317
content {
@@ -410,6 +414,11 @@ resource "aws_launch_template" "fleet_gitlab_runner" {
410
414
resource_type = " volume"
411
415
tags = local. tags
412
416
}
417
+ tag_specifications {
418
+ resource_type = " network-interface"
419
+ tags = local. tags
420
+ }
421
+ # tag_specifications for spot-instances-request do not work. Instance creation fails.
413
422
414
423
tags = local. tags
415
424
You can’t perform that action at this time.
0 commit comments