From 090411409de9952ae8a472c0e69fcf16968a96a2 Mon Sep 17 00:00:00 2001 From: italo Date: Sun, 11 Aug 2024 17:33:41 -0300 Subject: [PATCH] update terraform --- .github/workflows/terraform.yml | 4 ++-- main.tf | 16 ++++++++-------- providers.tf | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 34a82e7..a29b85c 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -60,7 +60,7 @@ jobs: # Initialize 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 -upgrade # Checks that all Terraform configuration files adhere to a canonical format - name: Terraform Format @@ -74,4 +74,4 @@ jobs: # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - name: Terraform Apply if: false && github.ref == 'refs/heads/"main"' && github.event_name == 'push' - run: terraform apply -auto-approve -input=false + run: terraform apply -input=false diff --git a/main.tf b/main.tf index cd2c2f8..6aae35b 100644 --- a/main.tf +++ b/main.tf @@ -1,11 +1,11 @@ -# terraform { -# backend "remote" { -# organization = "FiapPostech-SOAT" -# workspaces { -# name = "bmb-infra" -# } -# } -# } +terraform { + backend "remote" { + organization = "FiapPostech-SOAT" + workspaces { + name = "bmb-infra" + } + } +} # provider "aws" { # profile = var.profile diff --git a/providers.tf b/providers.tf index d3462ad..8759c5c 100644 --- a/providers.tf +++ b/providers.tf @@ -5,7 +5,7 @@ terraform { version = "5.62.0" } } - required_version = ">= 1.2.0" + required_version = "1.9.4" } provider "aws" {