-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.rc
executable file
·34 lines (24 loc) · 1.04 KB
/
bootstrap.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export SUBSCRIPTION_NAME=infrastructure-sandbox
export VAULT_SKIP_VERIFY=true
export VAULT_ADDR='https://vault.infra-sandbox-vault.nonprod.us.lnrisk.io'
export VAULT_USERNAME=goluga01
alias h=helm
alias v=vault
alias s=sentinel
alias vlogin="vault login -method=userpass username=$VAULT_USERNAME"
alias k=kubectl
alias kgp='kubectl get pods'
alias tf=terraform
alias tfa='terraform apply'
alias tfd='terraform destroy'
alias tfi='terraform init'
alias azlogin="az login --username ${AZURE_USERNAME} --password ${AZURE_PASSWORD}"
alias azsetsub="az account set --subscription $SUBSCRIPTION_NAME"
azlogin
azsetsub
export AZURE_SUBSCRIPTION_ID=$(az account list --output tsv --query "[?name=='$SUBSCRIPTION_NAME'].id")
export AZURE_TENANT_ID=$(az account list --output tsv --query "[?name=='$SUBSCRIPTION_NAME'].tenantId")
#
#client_id=$AZURE_CLIENT_ID \
#client_secret=$AZURE_CLIENT_SECRET
#alias aks_login="az aks get-credentials --name aks-app-srevault-sandbox-useast2 --resource-group app-srevault-sandbox-useast2 --subscription us-infrastructure-dev"