Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Fix terrafrom - pin versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed May 11, 2020
1 parent 05842bd commit 6bbb7a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@ jobs:
- uses: actions/checkout@v2

- name: Terraform Format
uses: hashicorp/terraform-github-actions@v0.6.4
uses: hashicorp/terraform-github-actions@v0.8.0
with:
tf_actions_version: latest
tf_actions_version: 0.12.8
tf_actions_subcommand: fmt
tf_actions_working_dir: terraform/azure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Terraform Init
uses: hashicorp/terraform-github-actions@v0.6.4
uses: hashicorp/terraform-github-actions@v0.8.0
with:
tf_actions_version: latest
tf_actions_version: 0.12.8
tf_actions_subcommand: init
tf_actions_working_dir: terraform/azure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TF_CLI_ARGS_init: -backend=false

- name: Terraform Validate
uses: hashicorp/terraform-github-actions@v0.6.4
uses: hashicorp/terraform-github-actions@v0.8.0
with:
tf_actions_version: latest
tf_actions_version: 0.12.8
tf_actions_subcommand: validate
tf_actions_working_dir: terraform/azure
env:
Expand Down
4 changes: 2 additions & 2 deletions terraform/azure/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.12.8"
required_version = "0.12.8"

backend "azurerm" {
key = "terraform.tfstate"
Expand All @@ -8,5 +8,5 @@ terraform {

provider "azurerm" {
# Login credential should be given to this provides by environment variables: ARM_CLIENT_ID, ARM_CLIENT_SECRET, ARM_SUBSCRIPTION_ID, ARM_TENANT_ID
version = ">=1.33.1"
version = "1.33.1"
}
1 change: 1 addition & 0 deletions terraform/modules/k8s_initial_config/helm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ resource "kubernetes_cluster_role_binding" "tiller" {
}

provider "helm" {
version = "0.10.4"
service_account = kubernetes_service_account.tiller.metadata.0.name
debug = true
kubernetes {
Expand Down

0 comments on commit 6bbb7a8

Please sign in to comment.