Skip to content

Commit

Permalink
Merge pull request #815 from DFE-Digital/er-790-azure-refinements
Browse files Browse the repository at this point in the history
ER-790: Azure Refinements
  • Loading branch information
sunny-sidhu-and authored Sep 7, 2023
2 parents 1b1109e + ba29e39 commit 3f06179
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tf-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ env:
ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
TF_VAR_oidc_request_token: ${{ env.ACTIONS_ID_TOKEN_REQUEST_TOKEN }}
TF_VAR_oidc_request_url: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL }}

jobs:
terraform-plan:
name: 'Terraform Plan'
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
environment: development
outputs:
tfplanExitCode: ${{ steps.tf-plan.outputs.exitcode }}

Expand Down
4 changes: 1 addition & 3 deletions terraform-azure/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
provider "azurerm" {
use_oidc = true
oidc_request_token = var.oidc_request_token
oidc_request_url = var.oidc_request_url
use_oidc = true

features {
resource_group {
Expand Down
3 changes: 0 additions & 3 deletions terraform-azure/variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
variable "oidc_request_token" {}
variable "oidc_request_url" {}

variable "azure_region" {
default = "westeurope"
description = "Name of the Azure region to deploy resources"
Expand Down

0 comments on commit 3f06179

Please sign in to comment.