Skip to content

Commit

Permalink
update terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
italopessoa committed Aug 11, 2024
1 parent 162b3b7 commit 0904114
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
16 changes: 8 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ terraform {
version = "5.62.0"
}
}
required_version = ">= 1.2.0"
required_version = "1.9.4"
}

provider "aws" {
Expand Down

0 comments on commit 0904114

Please sign in to comment.