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.
build server 2012 r2 with SQL 2014 Standard baked in
- Loading branch information
1 parent
06912f0
commit 060ad96
Showing
3 changed files
with
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
locals { | ||
components_common = [ | ||
{ | ||
name = "powershell_core" | ||
version = "0.3.0" | ||
parameters = [] | ||
}, | ||
{ | ||
name = "aws_cli" | ||
version = "0.0.3" | ||
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_standard" | ||
configuration_version = "0.0.1" | ||
release_or_patch = "release" # or "patch", see nomis AMI image building strategy doc | ||
description = "Windows Server 2012 R2 with SQL 2014 Standard" | ||
|
||
tags = { | ||
os-version = "windows server 2012 r2 with SQL 2014 Standard" | ||
} | ||
|
||
parent_image = { | ||
owner = "801119661308" | ||
ami_search_filters = { | ||
name = ["Windows_Server-2012-R2_RTM-English-64Bit-SQL_2014_SP3_Standard-*"] # specify as going EOL in 2023 | ||
} | ||
} | ||
|
||
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" | ||
"ec2launch-v2-windows" | ||
] | ||
|
||
components_custom = [] | ||
|
||
infrastructure_configuration = { | ||
instance_types = ["t3.xlarge"] # SQL 2014 Minimum requirements | ||
} | ||
|
||
image_pipeline = { | ||
schedule = { | ||
schedule_expression = "cron(0 0 2 * ? *)" | ||
} | ||
} | ||
|
||
launch_template_exists = false |
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" | ||
} |