From 51e43124a92e56cfd5da48b1ea7dc7cd89b8ccff Mon Sep 17 00:00:00 2001 From: anmolnagpal Date: Mon, 8 Jan 2024 21:19:10 +0530 Subject: [PATCH] feat: update tf.checks step name and tf and aws version --- .../{auto_merge.yml => automerge.yml} | 4 +- .gitignore | 208 +++++++++++++++++- _example/basic-function/versions.tf | 4 +- _example/basic-s3-function/versions.tf | 4 +- _example/complete-function/versions.tf | 4 +- versions.tf | 4 +- 6 files changed, 216 insertions(+), 12 deletions(-) rename .github/workflows/{auto_merge.yml => automerge.yml} (75%) diff --git a/.github/workflows/auto_merge.yml b/.github/workflows/automerge.yml similarity index 75% rename from .github/workflows/auto_merge.yml rename to .github/workflows/automerge.yml index e033fa7..4cacbc2 100644 --- a/.github/workflows/auto_merge.yml +++ b/.github/workflows/automerge.yml @@ -1,3 +1,4 @@ +--- name: Auto merge on: pull_request: @@ -7,4 +8,5 @@ jobs: secrets: GITHUB: ${{ secrets.GITHUB }} with: - tfcheck: 'complete-function-example / Get min/max versions' + tfcheck: 'basic-function-example / Check code format' +... \ No newline at end of file diff --git a/.gitignore b/.gitignore index bc10467..7bacaf4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,210 @@ # ignored files +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* +### Eclipse template + +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + +# Scala IDE specific (Scala & Java development for Eclipse) +.cache-main +.scala_dependencies +.worksheet +### Windows template +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk +### Ansible template +*.retry +### macOS template +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk +### Archives template +# It's better to unpack these files and commit the raw source because +# git has its own built in compression methods. +*.7z +*.jar +*.rar +*.zip +*.gz +*.tgz +*.bzip +*.bz2 +*.xz +*.lzma +*.cab + +# Packing-only formats +*.iso +*.tar + +# Package management formats +*.dmg +*.xpi +*.gem +*.egg +*.deb +*.rpm +*.msi +*.msm +*.msp +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +/.idea/ +# User-specific stuff: +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/dictionaries + +# Sensitive or high-churn files: +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.xml +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml + +# Gradle: +.idea/**/gradle.xml +.idea/**/libraries + +# CMake +cmake-build-debug/ + +# Mongo Explorer plugin: +.idea/**/mongoSettings.xml + +## File-based project format: +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ +# User-specific stuff: +.idea/* +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# TFstste +*.tfstate* + +deployment/_logs/ansible-log.json +deployment/_logs/ansible-log.log +deployment/_logs/facts/* +deployment/_logs/retry/* +_app/* +ansible-log.json +.terraform +terraform.tfstate + *.tfstate *.tfstate.backup -.terraform -.idea *.iml -*.zip *.terraform.lock.hcl +*.lock.hcl \ No newline at end of file diff --git a/_example/basic-function/versions.tf b/_example/basic-function/versions.tf index 473acc3..7c8e3b6 100644 --- a/_example/basic-function/versions.tf +++ b/_example/basic-function/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 1.6.2" + required_version = ">= 1.6.6" required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.22.0" + version = ">= 5.31.0" } } } diff --git a/_example/basic-s3-function/versions.tf b/_example/basic-s3-function/versions.tf index 473acc3..7c8e3b6 100644 --- a/_example/basic-s3-function/versions.tf +++ b/_example/basic-s3-function/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 1.6.2" + required_version = ">= 1.6.6" required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.22.0" + version = ">= 5.31.0" } } } diff --git a/_example/complete-function/versions.tf b/_example/complete-function/versions.tf index 473acc3..7c8e3b6 100644 --- a/_example/complete-function/versions.tf +++ b/_example/complete-function/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 1.6.2" + required_version = ">= 1.6.6" required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.22.0" + version = ">= 5.31.0" } } } diff --git a/versions.tf b/versions.tf index 473acc3..7c8e3b6 100644 --- a/versions.tf +++ b/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 1.6.2" + required_version = ">= 1.6.6" required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.22.0" + version = ">= 5.31.0" } } }