Skip to content

Commit

Permalink
docs: Fixes #16 - Documentation issue for testing deployment (#17)
Browse files Browse the repository at this point in the history
* Fixes #16

Fixes the test for onboarding new tenants from the command line.
- No longer sends Tenant ID when creating a Tenant
- Now just tests creation by getting all tenants (vs. tenant with ID)

* removed unused TENANT_ID
  • Loading branch information
tobuck-aws authored Mar 21, 2024
1 parent 1bddfb7 commit a0380ff
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/public/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ PASSWORD="INSERT PASSWORD HERE"
# Change this to a real email if you'd like to log into the tenant
TENANT_EMAIL="[email protected]"
CONTROL_PLANE_STACK_NAME="ControlPlaneStack"
TENANT_ID="$RANDOM"
TENANT_NAME="tenant$RANDOM"

CLIENT_ID=$(aws cloudformation list-exports --query "Exports[?Name=='ControlPlaneIdpDetails'].Value" | jq -r '.[0]' | jq -r '.idp.clientId')
Expand Down Expand Up @@ -507,12 +506,10 @@ CONTROL_PLANE_API_ENDPOINT=$(aws cloudformation describe-stacks \
DATA=$(jq --null-input \
--arg tenantName "$TENANT_NAME" \
--arg tenantEmail "$TENANT_EMAIL" \
--arg tenantId "$TENANT_ID" \
'{
"tenantName": $tenantName,
"email": $tenantEmail,
"tier": "basic",
"tenantId": $tenantId,
"tenantStatus": "In progress"
}')

Expand All @@ -524,9 +521,9 @@ curl --request POST \
--data "$DATA"
echo "" # add newline

echo "retrieving tenant..."
echo "retrieving tenants..."
curl --request GET \
--url "${CONTROL_PLANE_API_ENDPOINT}tenants/${TENANT_ID}" \
--url "${CONTROL_PLANE_API_ENDPOINT}tenants" \
--header "Authorization: Bearer ${ID_TOKEN}" \
--silent | jq

Expand Down

0 comments on commit a0380ff

Please sign in to comment.