Skip to content

Commit

Permalink
Merge pull request #715 from ministryofjustice/DSO/DSOS-2557/remove-b…
Browse files Browse the repository at this point in the history
…roken-2012-SQL-ami

Revert "Merge pull request #714 from ministryofjustice/DSO/DSOS-2557/…
  • Loading branch information
robertsweetman authored Feb 15, 2024
2 parents 1b3d657 + 0074880 commit d48f6e1
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ updates:
directory: "/commonimages/base/windows_2012_r2"
schedule:
interval: "daily"
- package-ecosystem: "terraform"
directory: "/commonimages/base/windows_2012_r2_SQL_2014"
schedule:
interval: "daily"
- package-ecosystem: "terraform"
directory: "/commonimages/components"
schedule:
Expand Down
4 changes: 4 additions & 0 deletions commonimages/base/windows_2012_r2_SQL_2014/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This AMI is currently broken due to parent_image configuration
The AMI was intended for PlanetFM but AWS Migration tool used instead

FIXME: https://dsdmoj.atlassian.net/browse/DSOS-2557
26 changes: 26 additions & 0 deletions commonimages/base/windows_2012_r2_SQL_2014/locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
locals {
components_common = [
{
name = "chocolatey"
version = "0.0.4"
parameters = []
},
{
name = "powershell_core_server_2012"
version = "0.5.0"
parameters = []
},
{
name = "aws_cli"
version = "0.0.4"
parameters = []
},
{
name = "git_windows"
version = "0.0.2"
parameters = []
}
]

component_template_args = {}
}
52 changes: 52 additions & 0 deletions commonimages/base/windows_2012_r2_SQL_2014/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# following are passed in via pipeline
# BRANCH_NAME =
# GH_ACTOR_NAME =

region = "eu-west-2"
ami_base_name = "windows_server_2012_r2_SQL_2014_enterprise"
configuration_version = "0.1.0"
release_or_patch = "release" # or "patch", see nomis AMI image building strategy doc
description = "Windows Server 2012 R2 with SQL 2014 Enterprise"

tags = {
os-version = "windows server 2012 r2 with SQL 2014 Enterprise"
}

parent_image = {
owner = "679593333241"
ami_search_filters = {
name = ["sc-a-216-5d93057e-941a-4d1b-884f-ec900151c1d1-230-5d93057e-941a-4d1b-884f-ec900151c1d1"] # AWS image not available so taken from marketplace. NOTE: This may fail at the build step if there is some sort of licensing restriction
}
}

block_device_mappings_ebs = [
{
device_name = "/dev/sda1" # root volume
volume_size = 128
volume_type = "gp3"
},
{
device_name = "/dev/sdb" # new volume created
volume_size = 100
volume_type = "gp3"
}
]

components_aws = [
"amazon-cloudwatch-agent-windows"
]

components_custom = []

infrastructure_configuration = {
instance_types = ["m4.xlarge"] # SQL 2014 Minimum requirements
}

image_pipeline = {
schedule = {
schedule_expression = "cron(0 0 2 * ? *)"
pipeline_execution_start_condition = "EXPRESSION_MATCH_ONLY"
}
}

launch_template_exists = false
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include {
path = find_in_parent_folders()
}
terraform {
source = "../../..//commonimages/base"
}

0 comments on commit d48f6e1

Please sign in to comment.