Skip to content

Commit

Permalink
feature/PI-275-fix_connections adjusted sandbox proxy name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohoolio authored and jaklinger committed May 22, 2024
1 parent 737b8ce commit 6ba1c64
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/infrastructure/apigee/proxygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} == -* ]];
Expand All @@ -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}
Expand Down

0 comments on commit 6ba1c64

Please sign in to comment.