Skip to content

Commit

Permalink
Remove unused data source (#1602)
Browse files Browse the repository at this point in the history
* remove azuread_service_principal from db.tf
  • Loading branch information
pluckyswan authored Nov 21, 2024
1 parent 421ae5b commit 4e003ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"filename": "operations/template/db.tf",
"hashed_secret": "7cb6efb98ba5972a9b5090dc2e517fe14d12cb04",
"is_verified": false,
"line_number": 20,
"line_number": 16,
"is_secret": false
}
],
Expand All @@ -243,5 +243,5 @@
}
]
},
"generated_at": "2024-05-28T21:15:26Z"
"generated_at": "2024-11-21T18:04:15Z"
}
4 changes: 0 additions & 4 deletions operations/template/db.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
data "azuread_service_principal" "principal" {
object_id = data.azurerm_client_config.current.object_id
}

resource "azurerm_postgresql_flexible_server" "database" {
name = "cdcti-${var.environment}-database"
resource_group_name = data.azurerm_resource_group.group.name
Expand Down
1 change: 1 addition & 0 deletions operations/template/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ data "azurerm_resource_group" "group" {
name = "csels-rsti-${var.environment}-moderate-rg"
}

# See here for explanation: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config.html
data "azurerm_client_config" "current" {}

0 comments on commit 4e003ff

Please sign in to comment.