diff --git a/.circleci/config.yml b/.circleci/config.yml index 1a9a66a..054771a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,8 +1,12 @@ -version: 2 +version: 2.1 + +references: + circleci_docker_primary: &circleci_docker_primary trussworks/circleci-docker-primary:822fac1c30f3bb7d5d595bed5d2dc86265c4f2f0 + jobs: validate: docker: - - image: trussworks/circleci-docker-primary:683f06a3c6b20ba8696a09632c1c26a532df5bf5 + - image: *circleci_docker_primary steps: - checkout - restore_cache: @@ -17,7 +21,7 @@ jobs: - ~/.cache/pre-commit workflows: - version: 2 + version: 2.1 validate: jobs: - validate diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99d1701..446edd5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: git://github.com/pre-commit/pre-commit-hooks - rev: v2.3.0 + rev: v3.2.0 hooks: - id: check-json - id: check-merge-conflict @@ -12,12 +12,12 @@ repos: - id: trailing-whitespace - repo: git://github.com/igorshubovych/markdownlint-cli - rev: v0.21.0 + rev: v0.23.2 hooks: - id: markdownlint - repo: git://github.com/antonbabenko/pre-commit-terraform - rev: v1.25.0 + rev: v1.31.0 hooks: - id: terraform_docs - id: terraform_fmt diff --git a/README.md b/README.md index f5c7c33..01bc88f 100644 --- a/README.md +++ b/README.md @@ -37,13 +37,14 @@ module "rds-snapshot-cleaner" { | Name | Version | |------|---------| -| terraform | >= 0.12 | +| terraform | ~> 0.12.0 | +| aws | ~> 2.70 | ## Providers | Name | Version | |------|---------| -| aws | n/a | +| aws | ~> 2.70 | ## Inputs diff --git a/versions.tf b/versions.tf index ac97c6a..d7ce6c1 100644 --- a/versions.tf +++ b/versions.tf @@ -1,4 +1,7 @@ - terraform { - required_version = ">= 0.12" + required_version = "~> 0.12.0" + + required_providers { + aws = "~> 2.70" + } }