Skip to content

Commit

Permalink
auth0 changes added
Browse files Browse the repository at this point in the history
  • Loading branch information
sfdevops committed Sep 23, 2024
1 parent e6adfc4 commit f308d06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/tenant-samples/silo/buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ phases:
- export TENANT_ADMIN_EMAIL=$(echo $tenant | jq -r '.contacts[] | select(.isPrimary == true) | .email')
- export USERNAME=$(echo $tenant | jq -r '.key')
- export KEY=$(echo $tenant | jq -r '.key')
- export IdP=$(echo $tenant | jq -r '.IdPKey')
- export TIER=$(echo "${tier}" | tr '[:upper:]' '[:lower:]')

# Exporting Webhook Envs
Expand Down Expand Up @@ -80,6 +81,7 @@ phases:
- export TF_VAR_jwt_issuer="${KEY}"
- export TF_VAR_rds_instance_allocated_storage="${POSTGRES_SIZE}"
- export TF_VAR_karpenter_instance_category="${INSTANCE_CATEGORY}"
- export TF_VAR_IdP="${IdP}"
- export TF_VAR_tenant_client_id="${KEY}"-$(echo "$TENANT_ID" | cut -c 10-)-"${TENANT_CLIENT_ID}"
- export TF_VAR_tenant_client_secret=$(echo "$TENANT_ID" | cut -c 10-)-"${TENANT_CLIENT_SECRET}"
- export ALB_DNS=$(aws elbv2 describe-load-balancers --query 'LoadBalancers[?Type==`application`] | [0].DNSName' --output text)
Expand Down
1 change: 1 addition & 0 deletions files/tenant-samples/silo/terraform/tfvariables.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ user_callback_secret = "${TF_VAR_user_callback_secret}"
rds_instance_allocated_storage = "${TF_VAR_rds_instance_allocated_storage}"
karpenter_instance_category = "${TF_VAR_karpenter_instance_category}"
tenant_tier = "${TF_VAR_tenant_tier}"
IdP = "${TF_VAR_IdP}"



Expand Down
4 changes: 4 additions & 0 deletions files/tenant-samples/silo/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ variable "tenant_id" {
description = "Tenat unique ID"
}

variable "IdP" {
type = string
description = "Tenant Identity Provider"
}
##################################################################################
## database
##################################################################################
Expand Down

0 comments on commit f308d06

Please sign in to comment.