Skip to content

Commit

Permalink
Terraform reserves "version" as a variable name, switching to app_ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
dukeofgaming committed Sep 11, 2024
1 parent 8e15f0c commit b5e2bae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ jobs:
# TODO: Add reusable input for plan_and_apply_options
plan_options: |
-var="environment=${{ matrix.environment }}" \
-var="version=${{ github.sha }}" \
-var="app_version=${{ github.sha }}" \
-var="container_image=${{ vars.ECR_URL }}:${{ github.sha }}" \
-var="database_password=${{ secrets.RDS_MASTER_PASSWORD }}"
apply_options: |
-var="environment=${{ matrix.environment }}" \
-var="version=${{ github.sha }}" \
-var="app_version=${{ github.sha }}" \
-var="container_image=${{ vars.ECR_URL }}:${{ github.sha }}" \
-var="database_password=${{ secrets.RDS_MASTER_PASSWORD }}" \
-auto-approve
Expand Down
2 changes: 1 addition & 1 deletion iac/terraform/app/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ variable "project" {
type = string
}

variable "version" {
variable "app_version" {
description = "The version of the application"
type = string
default = "TERRAFORM_INITIALIZED"
Expand Down

0 comments on commit b5e2bae

Please sign in to comment.