Skip to content

Commit

Permalink
Rename terraform/aks
Browse files Browse the repository at this point in the history
I've renamed it to terraform/application to match the teacher services
cloud template.
  • Loading branch information
thomasleese committed Jul 21, 2023
1 parent 742b5d9 commit 6dfa197
Show file tree
Hide file tree
Showing 26 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/actions/deploy-environment-to-aks/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
shell: bash
run: |
make ci ${{ inputs.environment }}_aks terraform-apply
cd terraform/aks && echo "url=$(terraform output -raw url)" >> $GITHUB_OUTPUT
cd terraform/application && echo "url=$(terraform output -raw url)" >> $GITHUB_OUTPUT
env:
TF_VAR_azure_sp_credentials_json: ${{ inputs.azure-credentials }}
DOCKER_IMAGE: ${{ inputs.docker-image }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/set-kubernetes-credentials/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:

- name: Get cluster details
id: cluster-details
working-directory: terraform/aks
working-directory: terraform/application
shell: bash
run: |
echo "name=$(terraform output -raw kubernetes_cluster_name)" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Get Azure backup storage details
id: azure-backup-storage
working-directory: terraform/aks
working-directory: terraform/application
run: |
echo "account-name=$(terraform output -raw postgres_azure_backup_storage_account_name)" >> $GITHUB_OUTPUT
echo "container-name=$(terraform output -raw postgres_azure_backup_storage_container_name)" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
run: |
terraform init -backend=false
terraform validate -no-color
working-directory: terraform/aks
working-directory: terraform/application
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,23 @@ terraform-init:
$(eval export TF_VAR_azure_resource_prefix=$(AZURE_RESOURCE_PREFIX))

[[ "${SP_AUTH}" != "true" ]] && az account show && az account set -s $(AZURE_SUBSCRIPTION) || true
terraform -chdir=terraform/aks init -backend-config workspace_variables/$(CONFIG).backend.tfvars $(backend_config) -upgrade -reconfigure
terraform -chdir=terraform/application init -backend-config workspace_variables/$(CONFIG).backend.tfvars $(backend_config) -upgrade -reconfigure

.PHONY: terraform-plan
terraform-plan: terraform-init
terraform -chdir=terraform/aks plan -var-file workspace_variables/$(CONFIG).tfvars.json
terraform -chdir=terraform/application plan -var-file workspace_variables/$(CONFIG).tfvars.json

.PHONY: terraform-refresh
terraform-refresh: terraform-init
terraform -chdir=terraform/aks refresh -var-file workspace_variables/$(CONFIG).tfvars.json
terraform -chdir=terraform/application refresh -var-file workspace_variables/$(CONFIG).tfvars.json

.PHONY: terraform-apply
terraform-apply: terraform-init
terraform -chdir=terraform/aks apply -var-file workspace_variables/$(CONFIG).tfvars.json ${AUTO_APPROVE}
terraform -chdir=terraform/application apply -var-file workspace_variables/$(CONFIG).tfvars.json ${AUTO_APPROVE}

.PHONY: terraform-destroy
terraform-destroy: terraform-init
terraform -chdir=terraform/aks destroy -var-file workspace_variables/$(CONFIG).tfvars.json ${AUTO_APPROVE}
terraform -chdir=terraform/application destroy -var-file workspace_variables/$(CONFIG).tfvars.json ${AUTO_APPROVE}

.PHONY: set-azure-resource-group-tags
set-azure-resource-group-tags: ##Tags that will be added to resource group on its creation in ARM template
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6dfa197

Please sign in to comment.