Skip to content

Commit

Permalink
add windows Server 2012 R2 SQL 2014 enterprise ami
Browse files Browse the repository at this point in the history
refer to our own Server 2012 R2 ami as parent
  • Loading branch information
robertsweetman committed Oct 12, 2023
1 parent 4b1281d commit 19eda36
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion commonimages/base/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ module "imagebuilder" {
systems_manager_agent = var.systems_manager_agent
branch = var.BRANCH_NAME
gh_actor = var.GH_ACTOR_NAME
}
}
7 changes: 4 additions & 3 deletions commonimages/base/windows_2012_r2/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

Expand All @@ -13,9 +13,10 @@ tags = {
}

parent_image = {
owner = "801119661308"
owner = "374269020027"
ami_search_filters = {
name = ["EC2LaunchV2-Windows_Server-2012_R2_RTM-English-Full-Base-*"] # specify as going EOL in 2023
name = ["base_windows_server_2012_r2_release_2023-09-07T*"] # specify our own Windows Server 2012 R2 base image as this went EOL in 2023
# based off the retired: EC2LaunchV2-Windows_Server-2012_R2_RTM-English-Full-Base-*
}
}

Expand Down
8 changes: 4 additions & 4 deletions commonimages/base/windows_2012_r2_SQL_2014/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

Expand All @@ -13,9 +13,9 @@ tags = {
}

parent_image = {
owner = "801119661308"
owner = "679593333241"
ami_search_filters = {
name = ["Windows_Server-2012-R2_RTM-English-64Bit-SQL_2014_SP3_Enterprise-*"] # specify as going EOL in 2023
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
}
}

Expand All @@ -39,7 +39,7 @@ components_aws = [
components_custom = []

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

image_pipeline = {
Expand Down
2 changes: 1 addition & 1 deletion modules/imagebuilder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ resource "aws_imagebuilder_infrastructure_configuration" "this" {
instance_profile_name = local.core_shared_services.imagebuilder_mp_tfstate.image_builder_profile
description = var.description
instance_types = var.infrastructure_configuration.instance_types
security_group_ids = values(local.core_shared_services.repo_tfstate.image_builder_security_group_id)
security_group_ids = [local.core_shared_services.repo_tfstate.image_builder_security_group_id.non_live_data]
subnet_id = local.core_shared_services.repo_tfstate.non_live_private_subnet_ids[0]
terminate_instance_on_failure = true
tags = local.tags
Expand Down

0 comments on commit 19eda36

Please sign in to comment.