From bba8e5aa9932833590c151fbc20c95f8c7a105af Mon Sep 17 00:00:00 2001 From: Angel Abad Date: Mon, 22 May 2023 16:41:06 +0200 Subject: [PATCH] fix: Use new format for required providers --- main.tf | 8 -------- versions.tf | 13 +++++++++++++ 2 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 versions.tf diff --git a/main.tf b/main.tf index a296381..3911d1c 100644 --- a/main.tf +++ b/main.tf @@ -3,14 +3,6 @@ locals { enable_logs = var.s3_logs_bucket != "" || var.cloudwatch_logs_group != "" || var.firehose_logs_delivery_stream != "" ? ["true"] : [] } -terraform { - required_version = ">= 0.15" - required_providers { - aws = ">= 4.16" - random = ">= 2.1" - } -} - data "aws_subnet" "this" { id = var.client_subnets[0] } diff --git a/versions.tf b/versions.tf new file mode 100644 index 0000000..1255a07 --- /dev/null +++ b/versions.tf @@ -0,0 +1,13 @@ +terraform { + required_version = ">= 0.15" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.16" + } + random = { + source = "hashicorp/random" + version = ">= 2.1" + } + } +}