Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

use MONGODB_ATLAS_* instead of ATLAS_* variables #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/create.taskcat_overrides.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -o errexit
set -o nounset
set -o pipefail
cat << EOF
PublicKey: "${ATLAS_PUBLIC_KEY}"
PrivateKey: "${ATLAS_PRIVATE_KEY}"
OrgId: "${ATLAS_ORG_ID}"
PublicKey: "${MONGODB_ATLAS_PUBLIC_KEY}"
PrivateKey: "${MONGODB_ATLAS_PRIVATE_KEY}"
OrgId: "${MONGODB_ATLAS_ORG_ID}"
EOF
6 changes: 3 additions & 3 deletions scripts/export-mongocli-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
if not profile in t:
raise Exception(f"No profile '{profile}' found in {config}")
d=t[profile]
print(f"export ATLAS_PUBLIC_KEY={d['public_api_key']}")
print(f"export ATLAS_PRIVATE_KEY={d['private_api_key']}")
print(f"export ATLAS_ORG_ID={d['org_id']}")
print(f"export MONGODB_ATLAS_PUBLIC_KEY={d['public_api_key']}")
print(f"export MONGODB_ATLAS_PRIVATE_KEY={d['private_api_key']}")
print(f"export MONGODB_ATLAS_ORG_ID={d['org_id']}")
6 changes: 3 additions & 3 deletions scripts/launch-new-quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ STACK_NAME="${1:-aws-quickstart}"
aws cloudformation create-stack \
--capabilities CAPABILITY_IAM --disable-rollback \
--template-body file://templates/mongodb-atlas.template.yaml \
--parameters ParameterKey=PublicKey,ParameterValue=${ATLAS_PUBLIC_KEY} \
ParameterKey=PrivateKey,ParameterValue=${ATLAS_PRIVATE_KEY} \
ParameterKey=OrgId,ParameterValue=${ATLAS_ORG_ID} \
--parameters ParameterKey=PublicKey,ParameterValue=${MONGODB_ATLAS_PUBLIC_KEY} \
ParameterKey=PrivateKey,ParameterValue=${MONGODB_ATLAS_PRIVATE_KEY} \
ParameterKey=OrgId,ParameterValue=${MONGODB_ATLAS_ORG_ID} \
--stack-name "${STACK_NAME}"
6 changes: 3 additions & 3 deletions scripts/launch-x-quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ echo "EXTRA_PARAMS=${EXTRA_PARAMS}"
aws cloudformation create-stack \
--capabilities CAPABILITY_IAM --disable-rollback \
--template-body "file://${TEMPLATE}" \
--parameters ParameterKey=PublicKey,ParameterValue=${ATLAS_PUBLIC_KEY} \
ParameterKey=PrivateKey,ParameterValue=${ATLAS_PRIVATE_KEY} \
ParameterKey=OrgId,ParameterValue=${ATLAS_ORG_ID} \
--parameters ParameterKey=PublicKey,ParameterValue=${MONGODB_ATLAS_PUBLIC_KEY} \
ParameterKey=PrivateKey,ParameterValue=${MONGODB_ATLAS_PRIVATE_KEY} \
ParameterKey=OrgId,ParameterValue=${MONGODB_ATLAS_ORG_ID} \
${EXTRA_PARAMS} \
--stack-name "${STACK_NAME}"