Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update azure-pipelines.yml with agency-specific variables #291

Closed
2 tasks done
Tracked by #295
thekaveman opened this issue Aug 15, 2023 · 0 comments · Fixed by #343
Closed
2 tasks done
Tracked by #295

Update azure-pipelines.yml with agency-specific variables #291

thekaveman opened this issue Aug 15, 2023 · 0 comments · Fixed by #343
Assignees
Labels
infrastructure Terraform, Azure, etc.

Comments

@thekaveman
Copy link
Member

thekaveman commented Aug 15, 2023

From the Terraform init task in azure-pipelines.yml:

- task: TerraformTaskV3@3
  displayName: Terraform init
  inputs:
    provider: azurerm
    command: init
    workingDirectory: "$(System.DefaultWorkingDirectory)/terraform"
    # https://developer.hashicorp.com/terraform/tutorials/automation/automate-terraform#automated-terraform-cli-workflow
    commandOptions: -input=false
    # service connection
    backendServiceArm: deployer
    # needs to match main.tf
    backendAzureRmResourceGroupName: courtesy-cards-eligibility-terraform
    backendAzureRmStorageAccountName: courtesycardsterraform
    backendAzureRmContainerName: tfstate
    backendAzureRmKey: terraform.tfstate

We need to variablize the following inputs:

  • backendAzureRmResourceGroupName: courtesy-cards-eligibility-terraform
  • backendAzureRmStorageAccountName: courtesycardsterraform

While keeping the above comment in mind:

# needs to match main.tf

See #292

Additional context

Will be impacted by the work from #284, but ideally here we don't care about how the pipeline is triggered, just where the input values come from.

@thekaveman thekaveman added the infrastructure Terraform, Azure, etc. label Aug 15, 2023
@thekaveman thekaveman added this to the SBMTD milestone Aug 15, 2023
@thekaveman thekaveman moved this from Todo to Stretch in Digital Services Sep 18, 2023
@thekaveman thekaveman moved this from Stretch to Todo in Digital Services Sep 18, 2023
@thekaveman thekaveman moved this from Todo to In Progress in Digital Services Oct 3, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Digital Services Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Terraform, Azure, etc.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants