Skip to content

Commit 3b6fe9a

Browse files
authored
enables IPV6 (#4131)
1 parent 81861e0 commit 3b6fe9a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

terraform-aws-github-runner/modules/runners-instances/security-groups.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ resource "aws_security_group" "runners_sg" {
99
vpc_id = element(var.vpc_ids, count.index).vpc
1010

1111
egress {
12-
from_port = 0
13-
to_port = 0
14-
protocol = "-1"
15-
cidr_blocks = ["0.0.0.0/0"]
12+
from_port = 0
13+
to_port = 0
14+
protocol = "-1"
15+
cidr_blocks = ["0.0.0.0/0"]
16+
ipv6_cidr_blocks = ["::/0"]
1617
}
1718
tags = merge(
1819
local.tags,

terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/runners.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ function createExpectedRunInstancesLinux(
9191
],
9292
NetworkInterfaces: [
9393
{
94+
Ipv6AddressCount: 1,
9495
AssociatePublicIpAddress: true,
9596
SubnetId: snetId,
9697
Groups: secGroup,
@@ -480,6 +481,7 @@ describe('createRunner', () => {
480481
],
481482
NetworkInterfaces: [
482483
{
484+
Ipv6AddressCount: 1,
483485
AssociatePublicIpAddress: true,
484486
SubnetId: snetId[0],
485487
Groups: secGroup,

terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/runners.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ export async function createRunner(runnerParameters: RunnerInputParameters, metr
352352
],
353353
NetworkInterfaces: [
354354
{
355+
Ipv6AddressCount: 1,
355356
AssociatePublicIpAddress: true,
356357
SubnetId: subnet,
357358
Groups: securityGroupIds,

0 commit comments

Comments
 (0)