diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 897e256..26ad940 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -36,7 +36,7 @@ Copilot loads skills automatically when relevant to a task. Always-on rules stay ## Terraform Conventions -- Required versions (per module README): Terraform `>= 1.9.5`; Providers: `aws ~> 5`, `awscc ~> 1`, `archive ~> 2`. +- Required versions (per module README): Terraform `>= 1.14.6`; Providers: `aws ~> 5`, `awscc ~> 1`, `archive ~> 2`. - Preserve input variable schemas; don't rename existing variables unless part of an approved refactor. - Avoid expanding resource surface unless justified (e.g., adding new AWS service support). If adding service support: supply docs update + variable toggles + tests. - Run `terraform fmt` implicitly (do not show command unless asked). Keep modules deterministic. diff --git a/.tool-versions b/.tool-versions index 32db55a..3244474 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,6 +1,6 @@ # This file is for you! Please, updated to the versions agreed by your team. -terraform 1.7.0 +terraform 1.14.6 pre-commit 3.6.0 # ============================================================================== diff --git a/examples/destination/.terraform.lock.hcl b/examples/destination/.terraform.lock.hcl new file mode 100644 index 0000000..39a6fbd --- /dev/null +++ b/examples/destination/.terraform.lock.hcl @@ -0,0 +1,25 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/aws" { + version = "5.100.0" + constraints = "~> 5.0" + hashes = [ + "h1:edXOJWE4ORX8Fm+dpVpICzMZJat4AX0VRCAy/xkcOc0=", + "zh:054b8dd49f0549c9a7cc27d159e45327b7b65cf404da5e5a20da154b90b8a644", + "zh:0b97bf8d5e03d15d83cc40b0530a1f84b459354939ba6f135a0086c20ebbe6b2", + "zh:1589a2266af699cbd5d80737a0fe02e54ec9cf2ca54e7e00ac51c7359056f274", + "zh:6330766f1d85f01ae6ea90d1b214b8b74cc8c1badc4696b165b36ddd4cc15f7b", + "zh:7c8c2e30d8e55291b86fcb64bdf6c25489d538688545eb48fd74ad622e5d3862", + "zh:99b1003bd9bd32ee323544da897148f46a527f622dc3971af63ea3e251596342", + "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425", + "zh:9f8b909d3ec50ade83c8062290378b1ec553edef6a447c56dadc01a99f4eaa93", + "zh:aaef921ff9aabaf8b1869a86d692ebd24fbd4e12c21205034bb679b9caf883a2", + "zh:ac882313207aba00dd5a76dbd572a0ddc818bb9cbf5c9d61b28fe30efaec951e", + "zh:bb64e8aff37becab373a1a0cc1080990785304141af42ed6aa3dd4913b000421", + "zh:dfe495f6621df5540d9c92ad40b8067376350b005c637ea6efac5dc15028add4", + "zh:f0ddf0eaf052766cfe09dea8200a946519f653c384ab4336e2a4a64fdd6310e9", + "zh:f1b7e684f4c7ae1eed272b6de7d2049bb87a0275cb04dbb7cda6636f600699c9", + "zh:ff461571e3f233699bf690db319dfe46aec75e58726636a0d97dd9ac6e32fb70", + ] +} diff --git a/modules/aws-backup-destination/README.md b/modules/aws-backup-destination/README.md index 3ce01f0..9c72b41 100644 --- a/modules/aws-backup-destination/README.md +++ b/modules/aws-backup-destination/README.md @@ -2,6 +2,13 @@ The AWS Backup Module helps automates the setup of AWS Backup resources in a destination account. It streamlines the process of creating, managing, and standardising backup configurations. +## Requirements + +| Name | Version | +|------|---------| +| [terraform](#requirement\_terraform) | >= 1.14.6 | +| [aws](#requirement\_aws) | ~> 5 | + ## Inputs | Name | Description | Type | Default | Required | diff --git a/modules/aws-backup-destination/versions.tf b/modules/aws-backup-destination/versions.tf new file mode 100644 index 0000000..fcc2c02 --- /dev/null +++ b/modules/aws-backup-destination/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5" + } + } + + required_version = ">= 1.14.6" +} diff --git a/modules/aws-backup-source/README.md b/modules/aws-backup-source/README.md index 2bcc0ec..d669399 100644 --- a/modules/aws-backup-source/README.md +++ b/modules/aws-backup-source/README.md @@ -21,7 +21,7 @@ module "test_aws_backup" { | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.9.5 | +| [terraform](#requirement\_terraform) | >= 1.14.6 | | [archive](#requirement\_archive) | ~> 2 | | [aws](#requirement\_aws) | ~> 5 | | [awscc](#requirement\_awscc) | ~> 1 | diff --git a/modules/aws-backup-source/versions.tf b/modules/aws-backup-source/versions.tf index fd6bbb2..c35fe66 100644 --- a/modules/aws-backup-source/versions.tf +++ b/modules/aws-backup-source/versions.tf @@ -7,7 +7,7 @@ terraform { aws = { source = "hashicorp/aws" - version = "> 5" + version = "~> 5" } awscc = { @@ -16,5 +16,5 @@ terraform { } } - required_version = ">= 1.9.5" + required_version = ">= 1.14.6" }