in lib/gitlab/aws_helper.rb [103:159]
def new_version_details(entity)
image = find_image
raise "AMI not found" unless image
ami_id = image.image_id
{
"Version" => {
"VersionTitle" => "#{@edition} #{@version} Release",
"ReleaseNotes" => "#{@edition} #{@version} release. Visit https://about.gitlab.com/releases for details.",
},
"DeliveryOptions" => [
{
"Details" => {
"AmiDeliveryOptionDetails" => {
"AmiSource" => {
"AmiId" => ami_id,
"AccessRoleArn" => Gitlab::Util.get_env('AWS_MARKETPLACE_ARN'),
"UserName" => "ubuntu",
"OperatingSystemName" => "UBUNTU",
"OperatingSystemVersion" => "24.04"
},
"UsageInstructions" => "https://docs.gitlab.com/ee/install/aws/",
"RecommendedInstanceType" => "c5.xlarge",
"SecurityGroups" => [
{
"IpProtocol" => "tcp",
"FromPort" => 22,
"ToPort" => 22,
"IpRanges" => [
"0.0.0.0/0"
]
},
{
"IpProtocol" => "tcp",
"FromPort" => 80,
"ToPort" => 80,
"IpRanges" => [
"0.0.0.0/0"
]
},
{
"IpProtocol" => "tcp",
"FromPort" => 443,
"ToPort" => 443,
"IpRanges" => [
"0.0.0.0/0"
]
}
]
}
}
}
]
}
end