Skip to content

Commit

Permalink
cognito related changes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sfdevops committed Oct 17, 2024
1 parent 8861aa3 commit ee26aa1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions files/tenant-samples/bridge/buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,24 +105,24 @@ phases:
- envsubst < config.txt > config.${TIER}.hcl
- envsubst <tfvariables.txt> ${TIER}.tfvars
# Run Terraform to create pooled infra
#- terraform init --backend-config=config.${TIER}.hcl
#- terraform apply -auto-approve
- terraform init --backend-config=config.${TIER}.hcl
- terraform apply -auto-approve
- cd ..

# Creating terraform backend config and tfvars at run time and Run terraform to create resources for tenant
- export TF_KEY=${KEY}/${KEY}.tfstate
- envsubst < config.txt > config.${KEY}.hcl
- envsubst <tfvariables.txt> ${KEY}.tfvars
- terraform init --backend-config=config.${KEY}.hcl
- terraform destroy --var=canary_enabled=false -auto-approve # as tenant application is not up so canary will be run afterwards
- terraform apply --var=canary_enabled=false -auto-approve # as tenant application is not up so canary will be run afterwards
# Push value to tenant management gitops repository
#- chmod +x push-values.sh
#- ./push-values.sh
#- kubectl apply -f ${TIER}-argo-workflow.yaml --namespace argo-workflows || true
#- kubectl apply -f argocd-application.yaml --namespace argocd || true
#- sleep 240 # waiting time to spin up tenant pods
- chmod +x push-values.sh
- ./push-values.sh
- kubectl apply -f ${TIER}-argo-workflow.yaml --namespace argo-workflows || true
- kubectl apply -f argocd-application.yaml --namespace argocd || true
- sleep 240 # waiting time to spin up tenant pods
#- terraform apply -auto-approve --refresh=false # refresh is false to avoid unnecessary API hitting
#- kubectl apply -f argo-workflow.yaml --namespace argo-workflows || true
- kubectl apply -f argo-workflow.yaml --namespace argo-workflows || true


finally:
Expand All @@ -134,7 +134,7 @@ phases:
- export CREATE_USER=1
# To run the webhook which will send notification and create tenant first admin user in pooled database
- node $WEBHOOK_PATH
#- python push_to_dynamodb.py # pushing tenant config to dynamodb based on tenant_id mapping
- python push_to_dynamodb.py # pushing tenant config to dynamodb based on tenant_id mapping



Expand Down

0 comments on commit ee26aa1

Please sign in to comment.