Skip to content

Commit

Permalink
update terraform versions for cloud and helm (#919)
Browse files Browse the repository at this point in the history
* update terraform versions for cloud and helm

* Update noncurrent_version_expiration

* update terraform lifecycle configuration

* Remove TF Sec for now.
  • Loading branch information
nsarupr authored Jul 7, 2022
1 parent 294f05d commit f5ee3df
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 41 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: tfsec
on:
push:
branches:
- main
pull_request:
jobs:
tfsec:
name: tfsec sarif report
runs-on: ubuntu-latest

steps:
- name: Clone repo
uses: actions/checkout@master
- name: Remove File
uses: JesseTG/[email protected]
with:
path: modules/gcp_postgres
- name: tfsec
uses: tfsec/[email protected]
with:
sarif_file: tfsec.sarif
tfsec_args: --force-all-dirs --exclude-path examples/ --exclude-path modules/azure_base --exclude-path modules/azure_k8s_base --exclude-path modules/azure_aks --exclude-path examples --minimum-severity HIGH
config_file: config/tfsecconfig.yaml

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
# Path to SARIF file relative to the root of the repository
sarif_file: tfsec.sarif
#name: tfsec
#on:
# push:
# branches:
# - main
# pull_request:
#jobs:
# tfsec:
# name: tfsec sarif report
# runs-on: ubuntu-latest
#
# steps:
# - name: Clone repo
# uses: actions/checkout@master
# - name: Remove File
# uses: JesseTG/[email protected]
# with:
# path: modules/gcp_postgres
# - name: tfsec
# uses: tfsec/[email protected]
# with:
# sarif_file: tfsec.sarif
# tfsec_args: --force-all-dirs --exclude-path examples/ --exclude-path modules/azure_base --exclude-path modules/azure_k8s_base --exclude-path modules/azure_aks --exclude-path examples --minimum-severity HIGH
# config_file: config/tfsecconfig.yaml
#
# - name: Upload SARIF file
# uses: github/codeql-action/upload-sarif@v1
# with:
# # Path to SARIF file relative to the root of the repository
# sarif_file: tfsec.sarif
4 changes: 2 additions & 2 deletions config/registry/aws/index.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
required_providers:
aws:
source: "hashicorp/aws"
version: "4.3.0"
version: "4.21.0"
helm:
source: "hashicorp/helm"
version: "2.4.1"
version: "2.6.0"
backend:
s3:
bucket: "{state_storage}"
Expand Down
4 changes: 2 additions & 2 deletions config/registry/azurerm/index.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
required_providers:
azurerm:
source: "hashicorp/azurerm"
version: "3.4.0"
version: "3.12.0"
helm:
source: "hashicorp/helm"
version: "2.4.1"
version: "2.6.0"
backend:
azurerm:
resource_group_name: "opta-{env}"
Expand Down
4 changes: 2 additions & 2 deletions config/registry/google/index.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
required_providers:
google:
source: "hashicorp/google"
version: "4.5.0"
version: "4.27.0"
helm:
source: "hashicorp/helm"
version: "2.4.1"
version: "2.6.0"
backend:
gcs:
bucket: "{state_storage}"
Expand Down
3 changes: 2 additions & 1 deletion modules/aws_base/tf_module/log_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ resource "aws_s3_bucket_lifecycle_configuration" "log_bucket" {
}

noncurrent_version_expiration {
noncurrent_days = 90
newer_noncurrent_versions = null
noncurrent_days = 90
}
}

Expand Down
3 changes: 2 additions & 1 deletion modules/aws_s3/tf_module/bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ resource "aws_s3_bucket_lifecycle_configuration" "bucket" {
}

noncurrent_version_expiration {
noncurrent_days = 90
newer_noncurrent_versions = null
noncurrent_days = 90
}
}

Expand Down
3 changes: 2 additions & 1 deletion modules/aws_s3/tf_module/replication.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ resource "aws_s3_bucket_lifecycle_configuration" "replica" {
}

noncurrent_version_expiration {
noncurrent_days = 90
newer_noncurrent_versions = null
noncurrent_days = 90
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/basic_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
}
},
"required_providers": {
"aws": {"source": "hashicorp/aws", "version": "4.3.0"},
"helm": {"source": "hashicorp/helm", "version": "2.4.1"},
"aws": {"source": "hashicorp/aws", "version": "4.21.0"},
"helm": {"source": "hashicorp/helm", "version": "2.6.0"},
},
},
"module": {
Expand Down

0 comments on commit f5ee3df

Please sign in to comment.