Skip to content

Commit 8bf41d1

Browse files
Allow small and medium CI runner fleets to access EFS (#2030)
Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
1 parent b55cfdf commit 8bf41d1

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

terraform/security.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,8 @@ resource "aws_security_group_rule" "efs_inbound" {
733733
"CI-x64" = data.aws_security_group.linux_x64.id
734734
"CI-arm64" = data.aws_security_group.linux_arm64.id
735735
"CI-lin-builder-x64" = data.aws_security_group.linux_x64_builder.id
736+
"CI-x64-small" = data.aws_security_group.linux_x64_small.id
737+
"CI-x64-medium" = data.aws_security_group.linux_x64_medium.id
736738
}
737739
security_group_id = aws_security_group.efs.id
738740
type = "ingress"
@@ -844,6 +846,20 @@ data "aws_security_group" "linux_x64_builder" {
844846
}
845847
}
846848

849+
data "aws_security_group" "linux_x64_small" {
850+
filter {
851+
name = "tag:ghr:environment"
852+
values = ["ce-ci-linux-x64-small"]
853+
}
854+
}
855+
856+
data "aws_security_group" "linux_x64_medium" {
857+
filter {
858+
name = "tag:ghr:environment"
859+
values = ["ce-ci-linux-x64-medium"]
860+
}
861+
}
862+
847863
resource "aws_security_group_rule" "WinBuilder_SmbLocally" {
848864
security_group_id = aws_security_group.CompilerExplorer.id
849865
type = "ingress"

0 commit comments

Comments
 (0)