File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,10 @@ resource "aws_launch_configuration" "gitlab_runner_instance" {
226
226
iops = lookup (root_block_device. value , " iops" , null )
227
227
}
228
228
}
229
+ metadata_options {
230
+ http_endpoint = var. runner_instance_metadata_options_http_endpoint
231
+ http_tokens = var. runner_instance_metadata_options_http_tokens
232
+ }
229
233
230
234
associate_public_ip_address = false == var. runners_use_private_address
231
235
Original file line number Diff line number Diff line change @@ -65,6 +65,18 @@ variable "runner_instance_spot_price" {
65
65
default = null
66
66
}
67
67
68
+ variable "runner_instance_metadata_options_http_endpoint" {
69
+ description = " Enable the Gitlab runner agent instance metadata service. The allowed values are enabled, disabled."
70
+ type = string
71
+ default = " enabled"
72
+ }
73
+
74
+ variable "runner_instance_metadata_options_http_tokens" {
75
+ description = " Set if Gitlab runner agent instance metadata service session tokens are required. The allowed values are optional, required."
76
+ type = string
77
+ default = " optional"
78
+ }
79
+
68
80
variable "ssh_key_pair" {
69
81
description = " Set this to use existing AWS key pair"
70
82
type = string
You can’t perform that action at this time.
0 commit comments