Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit d8d69c3

Browse files
dylanmtaylornpalm
andauthored
feat: Use Instance Metadata Service Version 2 by default. (#3513)
This closes #3512. Co-authored-by: Niek Palm <[email protected]>
1 parent 51d12b0 commit d8d69c3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ We welcome any improvement to the standard module to make the default as secure
575575
| <a name="input_runner_group_name"></a> [runner\_group\_name](#input\_runner\_group\_name) | Name of the runner group. | `string` | `"Default"` | no |
576576
| <a name="input_runner_iam_role_managed_policy_arns"></a> [runner\_iam\_role\_managed\_policy\_arns](#input\_runner\_iam\_role\_managed\_policy\_arns) | Attach AWS or customer-managed IAM policies (by ARN) to the runner IAM role | `list(string)` | `[]` | no |
577577
| <a name="input_runner_log_files"></a> [runner\_log\_files](#input\_runner\_log\_files) | (optional) Replaces the module default cloudwatch log config. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html for details. | <pre>list(object({<br> log_group_name = string<br> prefix_log_group = bool<br> file_path = string<br> log_stream_name = string<br> }))</pre> | `null` | no |
578-
| <a name="input_runner_metadata_options"></a> [runner\_metadata\_options](#input\_runner\_metadata\_options) | Metadata options for the ec2 runner instances. By default, the module uses metadata tags for bootstrapping the runner, only disable `instance_metadata_tags` when using custom scripts for starting the runner. | `map(any)` | <pre>{<br> "http_endpoint": "enabled",<br> "http_put_response_hop_limit": 1,<br> "http_tokens": "optional",<br> "instance_metadata_tags": "enabled"<br>}</pre> | no |
578+
| <a name="input_runner_metadata_options"></a> [runner\_metadata\_options](#input\_runner\_metadata\_options) | Metadata options for the ec2 runner instances. By default, the module uses metadata tags for bootstrapping the runner, only disable `instance_metadata_tags` when using custom scripts for starting the runner. | `map(any)` | <pre>{<br> "http_endpoint": "enabled",<br> "http_put_response_hop_limit": 1,<br> "http_tokens": "required",<br> "instance_metadata_tags": "enabled"<br>}</pre> | no |
579579
| <a name="input_runner_name_prefix"></a> [runner\_name\_prefix](#input\_runner\_name\_prefix) | The prefix used for the GitHub runner name. The prefix will be used in the default start script to prefix the instance name when register the runner in GitHub. The value is availabe via an EC2 tag 'ghr:runner\_name\_prefix'. | `string` | `""` | no |
580580
| <a name="input_runner_os"></a> [runner\_os](#input\_runner\_os) | The EC2 Operating System type to use for action runner instances (linux,windows). | `string` | `"linux"` | no |
581581
| <a name="input_runner_run_as"></a> [runner\_run\_as](#input\_runner\_run\_as) | Run the GitHub actions agent as user. | `string` | `"ec2-user"` | no |

modules/multi-runner/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ variable "multi_runner_config" {
3333
runner_metadata_options = optional(map(any), {
3434
instance_metadata_tags = "enabled"
3535
http_endpoint = "enabled"
36-
http_tokens = "optional"
36+
http_tokens = "required"
3737
http_put_response_hop_limit = 1
3838
})
3939
ami_filter = optional(map(list(string)), { state = ["available"] })

modules/runners/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ variable "metadata_options" {
504504
default = {
505505
instance_metadata_tags = "enabled"
506506
http_endpoint = "enabled"
507-
http_tokens = "optional"
507+
http_tokens = "required"
508508
http_put_response_hop_limit = 1
509509
}
510510
}

variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ variable "runner_metadata_options" {
572572
default = {
573573
instance_metadata_tags = "enabled"
574574
http_endpoint = "enabled"
575-
http_tokens = "optional"
575+
http_tokens = "required"
576576
http_put_response_hop_limit = 1
577577
}
578578
}

0 commit comments

Comments
 (0)