File tree Expand file tree Collapse file tree 4 files changed +14
-37
lines changed
Expand file tree Collapse file tree 4 files changed +14
-37
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ resource "azuredevops_build_definition" "this" {
4848
4949 variable_groups = [
5050 azuredevops_variable_group . infra_variable_group . id ,
51- azuredevops_variable_group . image_repo_variable . id ,
5251 ]
5352
5453 variable {
Original file line number Diff line number Diff line change 1+ output "acr_name" {
2+ value = azurerm_container_registry. this_container_registry . name
3+ }
4+
5+ output "acr_url" {
6+ value = azurerm_container_registry. this_container_registry . login_server
7+ }
Original file line number Diff line number Diff line change @@ -5,37 +5,13 @@ resource "azuredevops_variable_group" "infra_variable_group" {
55 allow_access = true
66
77 variable {
8- name = " ACR_NAME"
9- secret_value = azurerm_container_registry. this_container_registry . name
10- is_secret = false
8+ name = " ACR_URL"
9+ value = azurerm_container_registry. this_container_registry . login_server
1110
1211 }
1312
1413 variable {
15- name = " ACR_SERVICE_CONNECTION"
16- secret_value = azuredevops_serviceendpoint_azurecr. acr_registry_endpoint . id
17- is_secret = false
18- }
19- }
20-
21-
22- resource "azuredevops_variable_group" "image_repo_variable" {
23- project_id = azuredevops_project. this . id
24- name = " Image Repository Variables"
25- description = " Managed by Terraform"
26- allow_access = true
27-
28- variable {
29- name = " imageRepository"
30- value = " "
31- }
32- variable {
33- name = " containerRegistry"
34- value = " "
35- }
36-
37- variable {
38- name = " AZ_CONTAINER_NAME"
39- value = " "
14+ name = " ACR_SERVICE_CONNECTION"
15+ value = azuredevops_serviceendpoint_azurecr. acr_registry_endpoint . id
4016 }
4117}
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ variable "TFC_AZ_DEVOPS_PAT" {}
88variable "TFC_AZ_DEVOPS_GITHUB_PAT" {}
99
1010# ## Resource Group Variables ###
11-
1211variable "resource_group_name" {
1312 type = string
1413 description = " name of the resource group"
@@ -19,27 +18,23 @@ variable "location" {
1918 type = string
2019 description = " location of the resource group"
2120 default = " eastus"
22-
2321}
2422
2523# ### Azure Container Registry and Kubernetes Variables ###
2624variable "acr_name" {
2725 type = string
2826 description = " name of the Azure Container Registry"
29- default = " fastapidevsecopsacr"
30-
27+ default = " DSBContainerRegistry"
3128}
3229
3330variable "aks_name" {
3431 type = string
3532 description = " name of the Azure Kubernetes Service"
36- default = " fastapidevsecopsaks"
37-
33+ default = " DSB-AKS-Cluster"
3834}
3935
4036variable "uaid_name" {
4137 type = string
4238 description = " name of the Azure Kubernetes Service"
43- default = " DevSecOps-User-Assigned-Identity"
44-
39+ default = " DSB-UA-Identity"
4540}
You can’t perform that action at this time.
0 commit comments