-
-
Save KyMidd/77683dfbd4d85b53918f7a5f2ff2f5dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set terraform state file info based on solution_name | |
| if [[ $(echo "$solution_name" | grep 'dev-') ]]; then | |
| tf_storage_resource_group_name='dev-RG' | |
| tf_storage_account_name='devstorageacct' | |
| elif [[ $(echo "$solution_name" | grep 'stg-') ]]; then | |
| tf_storage_resource_group_name='stg-RG' | |
| tf_storage_account_name='stgstorageacct' | |
| fi | |
| # Set approval environment based on solution_name | |
| if [[ $(echo "$solution_name" | grep 'dev-') ]]; then | |
| TF_APPLY_ENV=dev-shared | |
| elif [[ $(echo "$solution_name" | grep 'stg-') ]]; then | |
| TF_APPLY_ENV=stg-shared | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment