Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Refactor: Upgrade to use terraform 15 (#9)
Browse files Browse the repository at this point in the history
* Running pre-commit autoupdate
* Update CI to tf 0.15
  • Loading branch information
Anouar authored Apr 29, 2021
1 parent db2c031 commit 81062a8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
sudo mv $(go env GOPATH)/bin/tfsec /usr/local/bin/tfsec
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: 0.14.9
terraform_version: 0.15.1
- name: Run terraform init on root & examples folders
run: |
for DIR in . $(find ./examples -type d); do
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.48.0
rev: v1.50.0
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ This version of the module implements just `repo` parameter of the `gcr-cleaner`

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.14.9 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_external"></a> [external](#requirement\_external) | >= 2.1.0 |
| <a name="requirement_google"></a> [google](#requirement\_google) | >= 3.62.0 |

Expand Down
2 changes: 1 addition & 1 deletion examples/complete/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.14.9"
required_version = ">= 0.15.0"

required_providers {
external = {
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.14.9"
required_version = ">= 0.15.0"

required_providers {
external = {
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ resource "google_cloud_scheduler_job" "this" {
uri = "${google_cloud_run_service.this.status[0].url}/http"
# TODO implement all payload parameters
# https://github.com/sethvargo/gcr-cleaner#payload--parameters
body = base64encode(jsonencode(map("repo", each.value)))
body = base64encode(jsonencode(tomap({ "repo" = each.value })))
oidc_token {
service_account_email = google_service_account.invoker.email
}
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.14.9"
required_version = ">= 0.15.0"
experiments = [module_variable_optional_attrs]

required_providers {
Expand Down

0 comments on commit 81062a8

Please sign in to comment.