Skip to content

Commit

Permalink
Update resource names
Browse files Browse the repository at this point in the history
  • Loading branch information
herveleclerc committed Mar 18, 2024
1 parent 9050061 commit cd60b97
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.ci.terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on: # yamllint disable-line rule:truthy
keyVaultName:
description: "Environment Key Vault Name"
required: true
default: "kv-symphony-environments"
default: "kv-lexecgrm-691"
runLayerTest:
description: "Run Layers Tests"
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow.cleanup.terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on: # yamllint disable-line rule:truthy
keyVaultName:
description: "Environment Key Vault Name"
required: true
default: "kv-symphony-environments"
default: "kv-lexecgrm-691"
terraformVersion:
type: string
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow.destroy.terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on: # yamllint disable-line rule:truthy
keyVaultName:
description: "Environment Key Vault Name"
required: true
default: "kv-symphony-environments"
default: "kv-lexecgrm-691"

jobs:
Destroy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow.pr.terraform.cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
group: pr-${{ github.event.pull_request.number }}

env:
KEY_VAULT_NAME: "kv-symphony-environments" #GitLeaksIgnore
KEY_VAULT_NAME: "kv-lexecgrm-691" #GitLeaksIgnore
TERRAFORM_VERSION: "1.6.2"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow.pr.terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ concurrency:
cancel-in-progress: true

env:
KEY_VAULT_NAME: "kv-symphony-environments" #GitLeaksIgnore
KEY_VAULT_NAME: "kv-lexecgrm-691" #GitLeaksIgnore
PR_ENVIRONMENT_DIRECTORY: "pr"
TERRAFORM_VERSION: "1.6.2"
RUN_LAYER_TESTS: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"env": "dev",
"location": "westus",
"docker_image_name_web": "crsymphony360.azurecr.io/eshopwebmvc",
"docker_image_name_web": "crlexecgrm691.azurecr.io/eshopwebmvc",
"docker_image_tag": "a72dd77",
"cr_resource_group_name": "devops-symphony-362",
"cr_name": "crsymphony360",
"cr_resource_group_name": "rg-lexecgrm-691",
"cr_name": "crlexecgrm691",
"app_service_sku_size": "S1",
"app_service_sku_tier": "Standard",
"rs_resource_group_name": "devops-symphony-362",
"rs_storage_account_name": "symphonyremotestate360",
"rs_resource_group_name": "rg-lexecgrm-691",
"rs_storage_account_name": "salexecgrm691",
"rs_container_name": "tfstate",
"rs_container_key": "02_sql/01_deployment_test_input.tfstate"
}
10 changes: 5 additions & 5 deletions env/terraform/dev/03_webapp_01_deployment.tfvars.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"env": "dev",
"location": "westus",
"docker_image_name_web": "crsymphony360.azurecr.io/eshopwebmvc",
"docker_image_name_web": "crlexecgrm691.azurecr.io/eshopwebmvc",
"docker_image_tag": "a72dd77",
"cr_resource_group_name": "devops-symphony-362",
"cr_name": "crsymphony360",
"cr_resource_group_name": "rg-lexecgrm-691",
"cr_name": "crlexecgrm691",
"app_service_sku_size": "S1",
"app_service_sku_tier": "Standard",
"rs_resource_group_name": "devops-symphony-362",
"rs_storage_account_name": "symphonyremotestate360",
"rs_resource_group_name": "rg-lexecgrm-691",
"rs_storage_account_name": "salexecgrm691",
"rs_container_name": "tfstate",
"rs_container_key": "02_sql/01_deployment.tfstate"
}
10 changes: 5 additions & 5 deletions env/terraform/pr/03_webapp_01_deployment.tfvars.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"location": "westus",
"docker_image_name_web": "crsymphony360.azurecr.io/eshopwebmvc",
"docker_image_name_web": "crlexecgrm691.azurecr.io/eshopwebmvc",
"docker_image_tag": "a72dd77",
"cr_resource_group_name": "devops-symphony-362",
"cr_name": "crsymphony360",
"cr_resource_group_name": "rg-lexecgrm-691",
"cr_name": "crlexecgrm691",
"app_service_sku_size": "S1",
"app_service_sku_tier": "Standard",
"rs_resource_group_name": "devops-symphony-362",
"rs_storage_account_name": "symphonyremotestate360",
"rs_resource_group_name": "rg-lexecgrm-691",
"rs_storage_account_name": "salexecgrm691",
"rs_container_name": "tfstate",
"rs_container_key": "02_sql/01_deployment.tfstate"
}
10 changes: 5 additions & 5 deletions env/terraform/prod/03_webapp_01_deployment.tfvars.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"env": "prod",
"location": "westus",
"docker_image_name_web": "crsymphony360.azurecr.io/eshopwebmvc",
"docker_image_name_web": "crlexecgrm691.azurecr.io/eshopwebmvc",
"docker_image_tag": "a72dd77",
"cr_resource_group_name": "devops-symphony-362",
"cr_name": "crsymphony360",
"cr_resource_group_name": "rg-lexecgrm-691",
"cr_name": "crlexecgrm691",
"app_service_sku_size": "S1",
"app_service_sku_tier": "Standard",
"rs_resource_group_name": "devops-symphony-362",
"rs_storage_account_name": "symphonyremotestate360",
"rs_resource_group_name": "rg-lexecgrm-691",
"rs_storage_account_name": "salexecgrm691",
"rs_container_name": "tfstate",
"rs_container_key": "02_sql/01_deployment.tfstate"
}
10 changes: 5 additions & 5 deletions scripts/install/cli/symphony
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,19 @@ configure_orchestrator() {
if [[ $is_mac == 0 ]]; then
sedCommand="sed -i '' -e "
fi
eval "git grep -l 'kv-symphony-environments' | xargs $sedCommand \"s/kv-symphony-environments/${SYMPHONY_KV_NAME}/g\""
eval "git grep -l 'devops-symphony-362' | xargs $sedCommand \"s/devops-symphony-362/${SYMPHONY_RG_NAME}/g\""
eval "git grep -l 'kv-lexecgrm-691' | xargs $sedCommand \"s/kv-lexecgrm-691/${SYMPHONY_KV_NAME}/g\""
eval "git grep -l 'rg-lexecgrm-691' | xargs $sedCommand \"s/rg-lexecgrm-691/${SYMPHONY_RG_NAME}/g\""
eval "git grep -l 'AzureCloud' -- ':!*_helpers.sh' | xargs $sedCommand \"s/AzureCloud/$SP_CLOUD_ENVIRONMENT/g\""

server_endpoint="$(get_acr_login_endpoint)"
eval "git grep -l 'crsymphony360.azurecr.io' | xargs $sedCommand \"s/crsymphony360.azurecr.io/${SYMPHONY_ACR_NAME}${server_endpoint}/g\""
eval "git grep -l 'crsymphony360' | xargs $sedCommand \"s/crsymphony360/${SYMPHONY_ACR_NAME}/g\""
eval "git grep -l 'crlexecgrm691.azurecr.io' | xargs $sedCommand \"s/crlexecgrm691.azurecr.io/${SYMPHONY_ACR_NAME}${server_endpoint}/g\""
eval "git grep -l 'crlexecgrm691' | xargs $sedCommand \"s/crlexecgrm691/${SYMPHONY_ACR_NAME}/g\""

if [ "$IACTOOL" == "bicep" ]; then
create_pipelines_bicep
else
# Update SA state Name
eval "git grep -l 'symphonyremotestate360' | xargs $sedCommand \"s/symphonyremotestate360/${SYMPHONY_SA_STATE_NAME}/g\""
eval "git grep -l 'salexecgrm691' | xargs $sedCommand \"s/salexecgrm691/${SYMPHONY_SA_STATE_NAME}/g\""
create_pipelines_terraform
fi

Expand Down

0 comments on commit cd60b97

Please sign in to comment.