File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ IPS_PER_SUBNET=${IPS_PER_SUBNET:=1024}
2020uuid=$( uuidgen | tr ' [:upper:]' ' [:lower:]' | awk -F- ' {print $1}' )
2121
2222# Dependent variables
23- resource_group_name=" ${NAME_PREFIX} --rg"
23+ resource_group_name=${RESOURCE_GROUP := " ${NAME_PREFIX} --rg" }
2424ce_project_name=" ${NAME_PREFIX} --ce-project"
2525vpc_name=" ${NAME_PREFIX} --is-vpc"
2626sshkey_name=" ${NAME_PREFIX} --sshkey"
Original file line number Diff line number Diff line change 11#! /bin/sh
22REGION=" ${REGION:= eu-de} "
33NAME_PREFIX=" ${NAME_PREFIX:= ce-fleet-sandbox} "
4+ RESOURCE_GROUP=" ${RESOURCE_GROUP:= $NAME_PREFIX --rg} "
45
5- ibmcloud login --sso -r " $REGION " -g " ${NAME_PREFIX} --rg "
6+ ibmcloud login --sso -r " $REGION " -g " $RESOURCE_GROUP "
67
78
89ibmcloud ce project select --name " ${NAME_PREFIX} --ce-project"
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ NAME_PREFIX=" ${NAME_PREFIX:= ce-fleet-sandbox} "
34# get the current resource group name
45resource_group_name=$( ibmcloud target -o JSON | jq -r ' .resource_group.name' )
5- cos_instance=${resource_group_name / --rg / } --cos
6+ cos_instance=${NAME_PREFIX } --cos
67
78echo " switching to COS instance $cos_instance "
89
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ NAME_PREFIX=" ${NAME_PREFIX:= ce-fleet-sandbox} "
34# get the current resource group name
45resource_group_name=$( ibmcloud target -o JSON | jq -r ' .resource_group.name' )
56region=$( ibmcloud target -o JSON | jq -r ' .region.name' )
6- cos_instance=${resource_group_name / --rg / } --cos
7+ cos_instance=${NAME_PREFIX } --cos
78
89echo " switching to COS instance $cos_instance "
910
You can’t perform that action at this time.
0 commit comments