diff --git a/terraform-aws-github-runner/modules/runners-instances/security-groups.tf b/terraform-aws-github-runner/modules/runners-instances/security-groups.tf index 0d969175f0..a4657bf47e 100644 --- a/terraform-aws-github-runner/modules/runners-instances/security-groups.tf +++ b/terraform-aws-github-runner/modules/runners-instances/security-groups.tf @@ -9,10 +9,11 @@ resource "aws_security_group" "runners_sg" { vpc_id = element(var.vpc_ids, count.index).vpc egress { - from_port = 0 - to_port = 0 - protocol = "-1" - cidr_blocks = ["0.0.0.0/0"] + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + ipv6_cidr_blocks = ["::/0"] } tags = merge( local.tags, diff --git a/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/runners.test.ts b/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/runners.test.ts index 5298da2847..5f361ddaaa 100644 --- a/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/runners.test.ts +++ b/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/runners.test.ts @@ -91,6 +91,7 @@ function createExpectedRunInstancesLinux( ], NetworkInterfaces: [ { + Ipv6AddressCount: 1, AssociatePublicIpAddress: true, SubnetId: snetId, Groups: secGroup, @@ -480,6 +481,7 @@ describe('createRunner', () => { ], NetworkInterfaces: [ { + Ipv6AddressCount: 1, AssociatePublicIpAddress: true, SubnetId: snetId[0], Groups: secGroup, diff --git a/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/runners.ts b/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/runners.ts index 668df803cf..2ac498a97c 100644 --- a/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/runners.ts +++ b/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/runners.ts @@ -352,6 +352,7 @@ export async function createRunner(runnerParameters: RunnerInputParameters, metr ], NetworkInterfaces: [ { + Ipv6AddressCount: 1, AssociatePublicIpAddress: true, SubnetId: subnet, Groups: securityGroupIds,