diff --git a/.github/workflows/provision.yml b/.github/workflows/provision.yml index 926a236..eae6ce9 100644 --- a/.github/workflows/provision.yml +++ b/.github/workflows/provision.yml @@ -1,6 +1,7 @@ name: Provision on: + workflow_dispatch: push: branches: - main @@ -13,7 +14,6 @@ on: paths: - .github/workflows/provision.yml - 'terraform/**' - workflow_dispatch: jobs: provision: @@ -63,5 +63,5 @@ jobs: run: exit 1 - name: Terraform Apply - if: github.ref == 'refs/heads/main' && github.event_name == 'push' + if: (github.ref == 'refs/heads/main' && github.event_name == 'push') || github.event_name == 'workflow_dispatch' run: terraform apply -auto-approve -input=false diff --git a/terraform/variables.tf b/terraform/variables.tf index 109e7c1..39424d8 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,5 +1,5 @@ variable "region" { - type = string + type = string default = "us-east-1" }