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

Commit 0ff7b23

Browse files
author
Sam Kottler
authored
fix: allow use of associate_public_ipv4_address from top-level module (#3572)
1 parent 23fdd8b commit 0ff7b23

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ We welcome any improvement to the standard module to make the default as secure
501501
| <a name="input_ami_id_ssm_parameter_name"></a> [ami\_id\_ssm\_parameter\_name](#input\_ami\_id\_ssm\_parameter\_name) | Externally managed SSM parameter (of data type aws:ec2:image) that contains the AMI ID to launch runner instances from. Overrides ami\_filter | `string` | `null` | no |
502502
| <a name="input_ami_kms_key_arn"></a> [ami\_kms\_key\_arn](#input\_ami\_kms\_key\_arn) | Optional CMK Key ARN to be used to launch an instance from a shared encrypted AMI | `string` | `null` | no |
503503
| <a name="input_ami_owners"></a> [ami\_owners](#input\_ami\_owners) | The list of owners used to select the AMI of action runner instances. | `list(string)` | <pre>[<br> "amazon"<br>]</pre> | no |
504+
| <a name="input_associate_public_ipv4_address"></a> [associate\_public\_ipv4\_address](#input\_associate\_public\_ipv4\_address) | Associate public IPv4 with the runner. Only tested with IPv4 | `bool` | `false` | no |
504505
| <a name="input_aws_partition"></a> [aws\_partition](#input\_aws\_partition) | (optiona) partition in the arn namespace to use if not 'aws' | `string` | `"aws"` | no |
505506
| <a name="input_aws_region"></a> [aws\_region](#input\_aws\_region) | AWS region. | `string` | n/a | yes |
506507
| <a name="input_block_device_mappings"></a> [block\_device\_mappings](#input\_block\_device\_mappings) | The EC2 instance block device configuration. Takes the following keys: `device_name`, `delete_on_termination`, `volume_type`, `volume_size`, `encrypted`, `iops`, `throughput`, `kms_key_id`, `snapshot_id`. | <pre>list(object({<br> delete_on_termination = optional(bool, true)<br> device_name = optional(string, "/dev/xvda")<br> encrypted = optional(bool, true)<br> iops = optional(number)<br> kms_key_id = optional(string)<br> snapshot_id = optional(string)<br> throughput = optional(number)<br> volume_size = number<br> volume_type = optional(string, "gp3")<br> }))</pre> | <pre>[<br> {<br> "volume_size": 30<br> }<br>]</pre> | no |

main.tf

+2
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ module "runners" {
248248

249249
scale_up_reserved_concurrent_executions = var.scale_up_reserved_concurrent_executions
250250

251+
associate_public_ipv4_address = var.associate_public_ipv4_address
252+
251253
instance_profile_path = var.instance_profile_path
252254
role_path = var.role_path
253255
role_permissions_boundary = var.role_permissions_boundary

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -769,3 +769,9 @@ variable "enable_jit_config" {
769769
type = bool
770770
default = null
771771
}
772+
773+
variable "associate_public_ipv4_address" {
774+
description = "Associate public IPv4 with the runner. Only tested with IPv4"
775+
type = bool
776+
default = false
777+
}

0 commit comments

Comments
 (0)