From 6d4341275a6d491bb1164325b9c4c27c213a6ae1 Mon Sep 17 00:00:00 2001 From: Breanna-Stryker <74314422+Breanna-Stryker@users.noreply.github.com> Date: Thu, 10 Jun 2021 09:36:47 -0400 Subject: [PATCH] Add flags to deployment script for T3 deployment. (#245) * Flag patch. * Spelling Fix. * Update deploy.sh Add tier 3 help string. Co-authored-by: Bree Stryker --- src/docs/workload-deployment.md | 2 +- src/scripts/deploy.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/docs/workload-deployment.md b/src/docs/workload-deployment.md index 7619f2e5b..7201da0d7 100644 --- a/src/docs/workload-deployment.md +++ b/src/docs/workload-deployment.md @@ -36,7 +36,7 @@ A production usage of tier 3 workloads will require a more advanced setup than a > **NOTE** Like the other Mission LZ tiers, each tier 3 workload can be deployed into its own subscription or they can be deployed into a single subscription. For production deployments we recommend that each tier 3 is deployed into its own subscription to simplify managing security and access. -1. First, moidfy the MLZ Configuration file `mlz.config` file using the `mlz.config.sample` as a template, this file should be a copy of the file used to deploy MLZ. You will need to modify the following to include the actual subscription number: +1. First, modify the MLZ Configuration file `mlz.config` file using the `mlz.config.sample` as a template, this file should be a copy of the file used to deploy MLZ. You will need to modify the following to include the actual subscription number: ```plaintext mlz_tier3_subid="{MLZ_TIER3_SUBID}" # Optional if not currently deploying a tier 3 diff --git a/src/scripts/deploy.sh b/src/scripts/deploy.sh index 2d89e57c0..33f92a700 100755 --- a/src/scripts/deploy.sh +++ b/src/scripts/deploy.sh @@ -29,6 +29,7 @@ show_help() { print_formatted "--tier0-sub-id" "-0" "[OPTIONAL] subscription ID for tier 0 network and resources (defaults to the value provided for -s --subscription-id)" print_formatted "--tier1-sub-id" "-1" "[OPTIONAL] subscription ID for tier 1 network and resources (defaults to the value provided for -s --subscription-id)" print_formatted "--tier2-sub-id" "-2" "[OPTIONAL] subscription ID for tier 2 network and resources (defaults to the value provided for -s --subscription-id)" + print_formatted "--tier3-sub-id" "-3" "[OPTIONAL] subscription ID for tier 3 network and resources (defaults to the value provided for -s --subscription-id), input is used in conjunction with deploy_t3.sh" print_formatted "--no-bastion" "" "[OPTIONAL] when present, do not create a Bastion Host and Jumpbox VM" print_formatted "--help" "-h" "Print this message" } @@ -211,6 +212,9 @@ while [ $# -gt 0 ] ; do -2 | --tier2-sub-id) shift subs_args+=("-2 ${1}") ;; + -3 | --tier3-sub-id) + shift + subs_args+=("-3 ${1}") ;; -h | --help) show_help exit 0 ;;