From b75f3facd68152bd1a3766c6c284c2413444c0fc Mon Sep 17 00:00:00 2001 From: matthieu42morin Date: Thu, 29 Feb 2024 18:52:54 +0100 Subject: [PATCH] FIX: Error: failed to get shared config profile --- providers.tf | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/providers.tf b/providers.tf index 52fa9e7..d79515e 100644 --- a/providers.tf +++ b/providers.tf @@ -1,4 +1,20 @@ -provider "aws" { - region = var.aws_default_region - profile = var.aws_profile +terraform { + required_version = ">= 1.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 3.0" + } + random = { + source = "hashicorp/random" + version = "~> 3.5" + } + } } +provider "aws" { + region = var.aws_default_region + profile = var.aws_profile +} + +provider "random" { +} \ No newline at end of file