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.

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