diff --git a/scripts/infrastructure/apigee/proxygen.sh b/scripts/infrastructure/apigee/proxygen.sh index 192ee0fbe..a26660f98 100644 --- a/scripts/infrastructure/apigee/proxygen.sh +++ b/scripts/infrastructure/apigee/proxygen.sh @@ -87,6 +87,7 @@ function generate_proxy(){ echo "proxy name must not contain '--'" exit 1 fi + # 2. Since we will prefix with 'connecting-party-manager-' # we cannot start with a hyphen either if [[ ${_workspace_name} == -* ]]; @@ -95,6 +96,12 @@ function generate_proxy(){ exit 1 fi + #3. Apigee services expect int-sandbox to be sandbox to match + if [[ ${_workspace_name} == "int-sandbox" ]]; + then + _workspace_name="sandbox" + fi + # Download the pem file if it does not exist if [ ! -f "${APIGEE_CONFIG_PATH}/${_apigee_stage}/.proxygen/private_key.pem" ]; then poetry run python ${PATH_TO_HERE}/download_pem.py ${_apigee_stage} ${APIGEE_DEPLOYMENT_ROLE}