locals {
  accounts = [
    {
      name = "accounting-prod",
      role = "arn:aws:iam::375914681009:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "accounting-qa",
      role = "arn:aws:iam::989790945997:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "amp-prod",
      role = "arn:aws:iam::554998489284:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "aoma-core-prod",
      role = "arn:aws:iam::613871678587:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "business-intelligence-prod",
      role = "arn:aws:iam::313114233826:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "dev",
      role = "arn:aws:iam::103233932089:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "disaster-recovery-prod",
      role = "arn:aws:iam::682033496752:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "fansifter-prod",
      role = "arn:aws:iam::737325105821:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "fansifter-qa",
      role = "arn:aws:iam::285943604611:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "mobile-code-push-prod",
      role = "arn:aws:iam::588827373449:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "mobile-code-push-qa",
      role = "arn:aws:iam::635057242373:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "networking",
      role = "arn:aws:iam::734458723522:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "permissions-platform-prod",
      role = "arn:aws:iam::031099521156:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "permissions-platform-qa",
      role = "arn:aws:iam::591204808501:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "prod",
      role = "arn:aws:iam::437795906767:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "qa",
      role = "arn:aws:iam::437795906767:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "shared",
      role = "arn:aws:iam::086679231553:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "songwhip-prod",
      role = "arn:aws:iam::926734670777:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "songwhip-qa",
      role = "arn:aws:iam::619719722105:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "supply-chain-prod",
      role = "arn:aws:iam::710271914708:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "supply-chain-qa",
      role = "arn:aws:iam::311141540202:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "test-automation-qa",
      role = "arn:aws:iam::699475937692:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "business-solutions-qa",
      role = "arn:aws:iam::814622134907:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "business-solutions-prod",
      role = "arn:aws:iam::009424872958:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "royaltyshare",
      role = "arn:aws:iam::290365479392:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-apollo-dev",
      role = "arn:aws:iam::725764004555:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-apollo-prod",
      role = "arn:aws:iam::801577982711:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-atlas-dev",
      role = "arn:aws:iam::582412345909:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-atlas-prod",
      role = "arn:aws:iam::885200931856:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-crm-prod",
      role = "arn:aws:iam::703740486246:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-databricks-dev",
      role = "arn:aws:iam::745243859288:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-databricks-prod",
      role = "arn:aws:iam::807702934854:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-delphi-dev",
      role = "arn:aws:iam::475275892927:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-delphi-prod",
      role = "arn:aws:iam::323555055331:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-infra-dev",
      role = "arn:aws:iam::483193324480:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-infra-prod",
      role = "arn:aws:iam::890208661333:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-rti-dev",
      role = "arn:aws:iam::714609459574:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-rti-prod",
      role = "arn:aws:iam::923763343190:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "gdb-whitelist-prod",
      role = "arn:aws:iam::322697034778:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "grps-prod",
      role = "arn:aws:iam::918817604416:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "eom-prod",
      role = "arn:aws:iam::799833541840:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "dx-qa",
      role = "arn:aws:iam::765134955759:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "ecommerce-qa",
      role = "arn:aws:iam::811473064144:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "ecommerce-prod",
      role = "arn:aws:iam::997286397029:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "aoma-core-dev",
      role = "arn:aws:iam::969009837416:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "aoma-delivery-dev",
      role = "arn:aws:iam::058029036333:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "aoma-delivery-prod",
      role = "arn:aws:iam::023180329437:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "aoma-gmp-prod",
      role = "arn:aws:iam::793676410512:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "amp-dev",
      role = "arn:aws:iam::887829410671:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "dc-dev",
      role = "arn:aws:iam::156555176793:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "dc-prod",
      role = "arn:aws:iam::280383026186:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "eom-dev",
      role = "arn:aws:iam::718729873097:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "dx-prod",
      role = "arn:aws:iam::729038418454:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "global-ds-dev",
      role = "arn:aws:iam::107577002119:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "global-ds-prod",
      role = "arn:aws:iam::635220336377:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "grps-dev",
      role = "arn:aws:iam::230315258045:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "media-conversion-dev",
      role = "arn:aws:iam::104858398257:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "media-conversion-prod",
      role = "arn:aws:iam::638682502729:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "mc-sec-dev",
      role = "arn:aws:iam::715641587426:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "mc-sec-prod",
      role = "arn:aws:iam::844930103112:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "media-services-dev",
      role = "arn:aws:iam::130080192946:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "media-services-prod",
      role = "arn:aws:iam::361463692799:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "supply-chain-max-dev",
      role = "arn:aws:iam::981599956623:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "supply-chain-max-prod",
      role = "arn:aws:iam::504436705349:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "orch-switchboard-dev",
      role = "arn:aws:iam::662302927201:role/cross-account-atlantis-tf-infra-core-role"
    },
    {
      name = "orch-switchboard-prod",
      role = "arn:aws:iam::019963779799:role/cross-account-atlantis-tf-infra-core-role"
    }
  ]
  workflows = {
    terraform_infra_core = {
      plan = {
        steps = [
          {
            env = {
              name    = "AWS_PROFILE"
              command = "echo $REPO_REL_DIR | awk -F/ '{print $1}'"
            }
          },
          "init",
          "plan"
        ]
      },
      apply = {
        steps = [
          {
            env = {
              name    = "AWS_PROFILE"
              command = "echo $REPO_REL_DIR | awk -F/ '{print $1}'"
            }
          },
          "apply"
        ]
      },
      import = {
        steps = [
          {
            env = {
              name    = "AWS_PROFILE"
              command = "echo $REPO_REL_DIR | awk -F/ '{print $1}'"
            }
          },
          "init",
          "import"
        ]
      },
      state_rm = {
        steps = [
          {
            env = {
              name    = "AWS_PROFILE"
              command = "echo $REPO_REL_DIR | awk -F/ '{print $1}'"
            }
          },
          "init",
          "state_rm"
        ]
      }
    }
  }

  security_group_tags = {
    eiso-exception = "aws.08.30"
  }
}
