From ace065d9d2cd24df2171d9f0c43d649e4f1a9990 Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Thu, 28 Mar 2024 18:39:16 +0000 Subject: [PATCH] use input variables for aws variables --- providers.tf | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/providers.tf b/providers.tf index 0a9783c..d1e0b93 100644 --- a/providers.tf +++ b/providers.tf @@ -1,12 +1,13 @@ -terraform { - required_providers { - aws = { - source = "hashicorp/aws" - } - } -} -provider "aws" { - region = "us-east-1" - shared_credentials_files = ["~/.aws/credentials"] - profile = "vscode" +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + } + } +} +# Configure the AWS Provider +provider "aws" { + region = var.aws_region + access_key = var.aws_access_key + secret_key = var.aws_secret_key } \ No newline at end of file