generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #715 from ministryofjustice/DSO/DSOS-2557/remove-b…
…roken-2012-SQL-ami Revert "Merge pull request #714 from ministryofjustice/DSO/DSOS-2557/…
- Loading branch information
Showing
5 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
52
commonimages/base/windows_2012_r2_SQL_2014/terraform.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
6 changes: 6 additions & 0 deletions
6
commonimages/base/windows_2012_r2_SQL_2014/terragrunt.hcl.disabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
include { | ||
path = find_in_parent_folders() | ||
} | ||
terraform { | ||
source = "../../..//commonimages/base" | ||
} |