-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.envrc
executable file
·39 lines (28 loc) · 1.24 KB
/
.envrc
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
35
36
37
38
39
NO_COLOR='\033[0m'
YELLOW='\033[0;33m'
export TF_VAR_email="[email protected]" # example: [email protected]
export TF_VAR_context="REPLACE_ME" # See E-Mail with credentials (TF_VAR_context)
export TF_VAR_argocd_bootstrap_project_branch=$TF_TF_VAR_context
export TF_VAR_git_registry_username="workshop-user"
# Dockerhub credentials see Readme.md -> Preparation & Requirements -> Point 6
export TF_VAR_dockerhub_username="REPLACE_ME"
#informations from the credentials e-mail
export OS_DOMAIN_NAME="REPLACE_ME" # See E-Mail with credentials (OS_DOMAIN_NAME)
export OS_PROJECT_NAME="eu-de_${TF_VAR_context}" # See E-Mail with credentials (OS_PROJECT_NAME)
export OS_USERNAME="REPLACE_ME" # See E-Mail with credentials (OS_USERNAME)
export TF_VAR_otc_user_id="REPLACE_ME" # See E-Mail with credentials (OTC_USER_ID)
export TF_VAR_region="eu-de"
export REGION=$TF_VAR_region
export TF_VAR_stage="dev"
export TF_VAR_domain_name="${TF_VAR_context}.iits.tech"
source ./my-secrets.sh
# OTC auth
otc-auth login iam -o
echo "create temp AK/SK"
#Terraform temp AK/SK
otc-auth temp-access-token create --duration-seconds 86390
source ./ak-sk-env.sh
export TF_VAR_ak_sk_security_token=$AWS_SESSION_TOKEN
rm ./ak-sk-env.sh
unset OS_USERNAME
unset OS_PASSWORD