Skip to content

Commit

Permalink
aws: Add Fedora 41 runners
Browse files Browse the repository at this point in the history
  • Loading branch information
bcl authored and jrusz committed May 14, 2024
1 parent cddc6c6 commit 0e7d526
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/fedora-41-aarch64/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"user": "fedora",
"runnerArch": "aarch64"
}
60 changes: 60 additions & 0 deletions aws/fedora-41-aarch64/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
module "aws" {
source = "../_base"

name = "fedora-41-aarch64"
ami = "ami-0efb0137e285ebbca" # Fedora-Cloud-Base-AmazonEC2.aarch64-Rawhide-20240513.n.0
instance_types = ["m6g.large", "m6gd.large", "m7g.large", "m7gd.large"]
internal_network = var.internal_network
job_name = var.job_name
project = var.project
branch = var.branch
pipeline_id = var.pipeline_id
pipeline_source = var.pipeline_source
iam_instance_profile = var.iam_instance_profile
}

variable "internal_network" {
type = bool
description = "Whether this instance should be in the internal network (default: false)."
default = false
}

output "ip_address" {
value = module.aws.ip_address
}

variable "job_name" {
description = "the job_name the instance is performing"
type = string
default = "unset"
}

variable "project" {
description = "the associated project"
type = string
default = "unset"
}

variable "branch" {
description = "the associated branch"
type = string
default = "unset"
}

variable "pipeline_id" {
description = "the associated pipeline_id"
type = string
default = "unset"
}

variable "pipeline_source" {
description = "the source that trigger the job"
type = string
default = "unset"
}

variable "iam_instance_profile" {
description = "instance profile to attach to the runner, the profile must exist"
type = string
default = null
}
4 changes: 4 additions & 0 deletions aws/fedora-41-x86_64/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"user": "fedora",
"runnerArch": "amd64"
}
60 changes: 60 additions & 0 deletions aws/fedora-41-x86_64/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
module "aws" {
source = "../_base"

name = "fedora-41-x86_64"
ami = "ami-0102211502b56008c" # Fedora-Cloud-Base-AmazonEC2.x86_64-Rawhide-20240513.n.0
instance_types = ["m5.large", "m5d.large", "m5a.large", "m5ad.large", "m6a.large", "m6i.large", "m6id.large", "m7i.large", "m7a.large"]
internal_network = var.internal_network
job_name = var.job_name
project = var.project
branch = var.branch
pipeline_id = var.pipeline_id
pipeline_source = var.pipeline_source
iam_instance_profile = var.iam_instance_profile
}

variable "internal_network" {
type = bool
description = "Whether this instance should be in the internal network (default: false)."
default = false
}

output "ip_address" {
value = module.aws.ip_address
}

variable "job_name" {
description = "the job_name the instance is performing"
type = string
default = "unset"
}

variable "project" {
description = "the associated project"
type = string
default = "unset"
}

variable "branch" {
description = "the associated branch"
type = string
default = "unset"
}

variable "pipeline_id" {
description = "the associated pipeline_id"
type = string
default = "unset"
}

variable "pipeline_source" {
description = "the source that trigger the job"
type = string
default = "unset"
}

variable "iam_instance_profile" {
description = "instance profile to attach to the runner, the profile must exist"
type = string
default = null
}

0 comments on commit 0e7d526

Please sign in to comment.