Skip to content

Commit

Permalink
ER-697: Terraform init command
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-sidhu-and committed Aug 14, 2023
1 parent fbbf291 commit 33a773a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/azure-deploy-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
az webapp vnet-integration add --resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} \
--name ${{ vars.REVIEWAPP_NAME }} \
--slot ${{ env.PR_NUMBER }} \
--subnet ${{ AZURE_REVIEW_APP_SUBNET }} \
--subnet ${{ secrets.AZURE_REVIEW_APP_SUBNET }} \
--vnet ${{ secrets.AZURE_VNET }}
az webapp config appsettings set --resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} \
--name ${{ vars.REVIEWAPP_NAME }} \
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/tf-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,12 @@ jobs:

# Initialise a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
run: terraform init
run: >
terraform init
-backend-config="resource_group_name=${{ secrets.TERRAFORM_STATE_RESOURCE_GROUP }}"
-backend-config="storage_account_name=${{ secrets.TERRAFORM_STATE_STORAGE_ACCOUNT_NAME }}"
-backend-config="container_name=${{ secrets.TERRAFORM_STATE_STORAGE_CONTAINER_NAME }}"
-backend-config="key=${{ secrets.TERRAFORM_STATE_KEY }}"
# Download saved plan from artifacts
- name: Download Terraform Plan
Expand Down
4 changes: 2 additions & 2 deletions terraform-azure/terraform-azure-database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ resource "azurerm_postgresql_flexible_server_configuration" "psqlfs_config" {
resource "azurerm_postgresql_flexible_server_database" "psqldb" {
name = "${var.resource_name_prefix}-${random_pet.name.id}-psqldb"
server_id = azurerm_postgresql_flexible_server.psqlfs.id
collation = "en_US.UTF8"
charset = "UTF8"
collation = "en_US.utf8"
charset = "utf8"
}

0 comments on commit 33a773a

Please sign in to comment.