Browse Source

Removed legacy mo-c19, as it's been decomissioned

Fred Damstra 5 years ago
parent
commit
3de7e74622

+ 0 - 3
prod/aws/legacy-mdr-prod/022-attach-transit-gateway-to-legacy-mo-c19/README.md

@@ -1,3 +0,0 @@
-# Attaches the legacy VPCs to the transit gateway
-
-

+ 0 - 45
prod/aws/legacy-mdr-prod/022-attach-transit-gateway-to-legacy-mo-c19/terragrunt.hcl

@@ -1,45 +0,0 @@
-locals {
-  # If you want to use any of the variables in _this_ file, you have to load them here.
-  # However, they will all be available as inputs to the module loaded in terraform.source
-  # below.
-
-  # e.g. inherited variables:
-  environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))
-  partition_vars = read_terragrunt_config(find_in_parent_folders("partition.hcl"))
-  region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
-  account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl"))
-  global_vars = read_terragrunt_config(find_in_parent_folders("globals.hcl"))
-}
-
-dependency "transit_gateway" {
-  config_path = "../../${local.environment_vars.locals.transit_gateway_account_name}/008-transit-gateway-hub"
-}
-
-# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
-# working directory, into a temporary folder, and execute your Terraform commands in that folder.
-terraform {
-  # Double slash is intentional and required to show root of modules
-  source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/transit_gateway_client?ref=v0.5.2"
-}
-
-# Include all settings from the root terragrunt.hcl file
-include {
-  path = find_in_parent_folders()
-}
-
-# These are the variables we have to pass in to use the module specified in the terragrunt source above
-inputs = {
-  # All of the inputs from the inherited hcl files are available automatically
-  # (via the `inputs` section of the root `terragrunt.hcl`). However, modules
-  # will be more flexible if you specify particular input values.
-  tags = {
-    Name = "${local.partition_vars.locals.aws_partition_alias}-${local.environment_vars.locals.environment}-LEGACY"
-    Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
-  }
-  accept_invitation = false # Should only be true for the first attachment
-  share_arn = dependency.transit_gateway.outputs.resource_share_arns[local.account_vars.locals.aws_account_id]
-  tgw_id = dependency.transit_gateway.outputs.tgw_id
-  vpc_id =  local.account_vars.locals.legacy_vpcs["mo-c19"]["id"]
-  subnets = local.account_vars.locals.legacy_vpcs["mo-c19"]["private_subnets"]
-  route_tables = concat(local.account_vars.locals.legacy_vpcs["mo-c19"]["public_route_tables"], local.account_vars.locals.legacy_vpcs["mo-c19"]["private_route_tables"])
-}

+ 0 - 7
prod/aws/legacy-mdr-prod/account.hcl

@@ -84,13 +84,6 @@ locals {
       private_route_tables = [ "rtb-0a45aa54a80e89c48", "rtb-08ff0d423f57fbf0c", "rtb-0481035a575c11af7" ]
       public_route_tables  = [ "rtb-09c2e1f7572807386" ]
     }
-    mo-c19 = {
-      id = "vpc-0c18a9f0060e74f9c",
-      private_subnets = [ "subnet-0dffc27e7186356d6", "subnet-0fc531536fd7d802f", "subnet-0f0c40ebb8812b4ff" ]
-      public_subnets  = [ "subnet-02989bfa03a94a6af", "subnet-01ddfc5f441af7dc3", "subnet-0574aeccfca93a1bd" ]
-      private_route_tables = [ "rtb-0d916e79a295bc3e3", "rtb-0091361ae86be17e2", "rtb-0ceb2d70ae66f5045" ]
-      public_route_tables  = [ "rtb-020d0cd847a775c74" ]
-    }
     nga = {
       id = "vpc-05e0cf38982e048db",
       private_subnets = [ "subnet-0065a8d0e2e3e3fe2", "subnet-04e8ba3db254147b2", "subnet-077dd32d6e0f86218" ]